1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00
This commit is contained in:
ericgaspar 2021-06-23 09:38:53 +02:00
parent 35055d1adb
commit dfa3dce525
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 3 additions and 8 deletions

View file

@ -106,4 +106,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Change of URL completed for Lychee" --last ynh_script_progression --message="Change of URL completed for $app" --last

View file

@ -66,6 +66,8 @@ fi
if [ -z "$public_path" ]; then if [ -z "$public_path" ]; then
public_path=/home/yunohost.app/$app public_path=/home/yunohost.app/$app
mkdir -p $public_path mkdir -p $public_path
chmod 755 $public_path
chown -R $app:www-data $public_path
ynh_app_setting_set --app=$app --key=public_path --value=$public_path ynh_app_setting_set --app=$app --key=public_path --value=$public_path
cp -a "$final_path/public/uploads" "$public_path/uploads" cp -a "$final_path/public/uploads" "$public_path/uploads"
fi fi
@ -153,13 +155,6 @@ ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\"
( cd $final_path && php$phpversion artisan config:clear -n ) ( cd $final_path && php$phpversion artisan config:clear -n )
( cd $final_path && php$phpversion artisan config:cache -n ) ( cd $final_path && php$phpversion artisan config:cache -n )
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
chmod 755 $public_path
chown -R $app:www-data $public_path
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
#================================================= #=================================================