1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Update scripts/config

Co-authored-by: tituspijean <titus@pijean.ovh>
This commit is contained in:
eric_G 2023-10-31 15:47:53 +01:00 committed by GitHub
parent 332f61e635
commit d7f1206bf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,8 +62,7 @@ get__free_footprint() {
set__maintenance_mode() {
if [ "$maintenance_mode" -eq "1" ]; then
# If maintenance_mode was set to 1, enable maintenance mode
(cd "$install_dir" && ynh_exec_as "$app" \
echo "Site under maintenance." > .maintenance)
ynh_exec_as "$app" echo "Site under maintenance." > $install_dir/.maintenance
ynh_print_info "Maintenance mode enabled"
elif [ "$maintenance_mode" -eq "0" ]; then
# If maintenance_mode was set to 0, disable maintenance mode