Ensure removing .migrate is run as root

This commit is contained in:
Deon George 2020-01-28 23:10:11 +11:00
parent d23d97f9dd
commit 8237c6270c

2
init
View File

@ -64,7 +64,7 @@ if [ "${role}" = "app" -a -e artisan ]; then
if [ -r .migrate ]; then
echo "* Running migration..."
su www-data -s /bin/sh -c "php artisan migrate && rm -f .migrate"
su www-data -s /bin/sh -c "php artisan migrate" && rm -f .migrate
fi
echo "* Caching configuration..."