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:
parent
332f61e635
commit
d7f1206bf6
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue