Olivier Massot 2 лет назад
Родитель
Сommit
f55d42ea1e
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      typo3/clone-install-on-test.sh

+ 7 - 0
typo3/clone-install-on-test.sh

@@ -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 +"