mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
Start if stopped (#776)
This commit is contained in:
parent
cf8898162d
commit
fbdcc4e77f
8
lib.sh
8
lib.sh
@ -208,6 +208,14 @@ do
|
||||
done
|
||||
}
|
||||
|
||||
start_if_stopped() {
|
||||
if ! pgrep "$1"
|
||||
then
|
||||
print_text_in_color "$ICyan" "Starting $1..."
|
||||
check_command service "$1" start
|
||||
fi
|
||||
}
|
||||
|
||||
# Warn user that HTTP/2 will be disabled if installing app that use Apache2 PHP instead of PHP-FPM
|
||||
# E.g: http2_warn Modsecurity
|
||||
http2_warn() {
|
||||
|
||||
@ -367,7 +367,7 @@ Please check in $BACKUP if the folders exist."
|
||||
fi
|
||||
|
||||
# Start Apache2
|
||||
check_command service apache2 start
|
||||
start_if_stopped apache2
|
||||
|
||||
# Recover apps that exists in the backed up apps folder
|
||||
run_static_script recover_apps
|
||||
|
||||
Loading…
Reference in New Issue
Block a user