1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

more sudo

This commit is contained in:
Sebastian Gumprich 2017-06-14 22:38:24 +02:00
parent 92b7b2d8a9
commit de6f4acab8

View file

@ -82,8 +82,8 @@ sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
# setup application config
sudo cp ../conf/.env $final_path/.env
cd $final_path && /usr/bin/php7.0 artisan -n key:generate --force
cd $final_path && /usr/bin/php7.0 artisan config:clear
cd $final_path && sudo /usr/bin/php7.0 artisan -n key:generate --force
cd $final_path && sudo /usr/bin/php7.0 artisan config:clear
sudo sed -i "s/yunouser/$dbuser/g" $final_path/.env
sudo sed -i "s/yunopass/$dbpass/g" $final_path/.env
@ -100,12 +100,12 @@ cd $final_path && sudo_path "$nodejs_path/pnpm" install -g bower gulp
cd $final_path && sudo_path "$nodejs_path/bower" install -f --allow-root
# setup application config
cd $final_path && /usr/bin/php7.0 artisan -q migrate --force
cd $final_path && /usr/bin/php7.0 artisan -q storage:link
cd $final_path && /usr/bin/php7.0 artisan -q optimize
cd $final_path && /usr/bin/php7.0 artisan -q db:seed --class ActivityTypesTableSeeder --force
cd $final_path && /usr/bin/php7.0 artisan -q db:seed --class CountriesSeederTable --force
cd $final_path && /usr/bin/php7.0 artisan -q db:seed --class CreateUser --force
cd $final_path && sudo /usr/bin/php7.0 artisan -q migrate --force
cd $final_path && sudo /usr/bin/php7.0 artisan -q storage:link
cd $final_path && sudo /usr/bin/php7.0 artisan -q optimize
cd $final_path && sudo /usr/bin/php7.0 artisan -q db:seed --class ActivityTypesTableSeeder --force
cd $final_path && sudo /usr/bin/php7.0 artisan -q db:seed --class CountriesSeederTable --force
cd $final_path && sudo /usr/bin/php7.0 artisan -q db:seed --class CreateUser --force
# create a cronjob to run the scheduler
echo "* * * * * www-data cd $final_path && /usr/bin/php7.0 $final_path/artisan schedule:run >/dev/null 2>&1" > /tmp/cron$app