|
|
@@ -12,6 +12,11 @@ else
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
|
+if [ "$(id -u)" != "0" ]; then
|
|
|
+ echo "This script must be run as root" 1>&2
|
|
|
+ exit 1
|
|
|
+fi
|
|
|
+
|
|
|
now=$(date '+%Y%m%d-%H%M')
|
|
|
|
|
|
# shellcheck disable=SC2029
|
|
|
@@ -26,4 +31,6 @@ rm "/home/exploitation/typo3_install_$now.tar.gz"
|
|
|
|
|
|
ssh exploitation@prod-front "rm /home/exploitation/typo3_install_$now.tar.gz"
|
|
|
|
|
|
+chown -R exploitation:www-data /var/www/typo3
|
|
|
+
|
|
|
echo "+ Typo3 install cloned +"
|