mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
Update upgrade
This commit is contained in:
parent
f321e62728
commit
ca24c4c6c0
1 changed files with 7 additions and 10 deletions
|
@ -63,6 +63,10 @@ then
|
||||||
ynh_setup_source --dest_dir="$install_dir" --keep=".env public/uploads storage/uploads"
|
ynh_setup_source --dest_dir="$install_dir" --keep=".env public/uploads storage/uploads"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chmod 755 $install_dir
|
||||||
|
chmod -R o-rwx $install_dir
|
||||||
|
chown -R $app:www-data $install_dir
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REAPPLY SYSTEM CONFIGURATIONS
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -90,11 +94,11 @@ ynh_install_composer
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
#ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
app_url_domain="https://$domain${path%/}"
|
#app_url_domain="https://$domain${path%/}"
|
||||||
|
|
||||||
ynh_add_config --template=../conf/.env.example --destination=$install_dir/.env
|
#ynh_add_config --template=../conf/.env.example --destination=$install_dir/.env
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# FINAL BOOKSTACK INSTALL
|
# FINAL BOOKSTACK INSTALL
|
||||||
|
@ -109,13 +113,6 @@ pushd $install_dir
|
||||||
php$phpversion artisan view:clear
|
php$phpversion artisan view:clear
|
||||||
popd
|
popd
|
||||||
|
|
||||||
chmod 755 $install_dir
|
|
||||||
chmod -R o-rwx $install_dir
|
|
||||||
chown -R $app:www-data $install_dir
|
|
||||||
|
|
||||||
chmod 600 $install_dir/.env
|
|
||||||
chown $app:$app $install_dir/.env
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue