Added force flag

This commit is contained in:
Alexey Berezhok
2024-04-29 22:12:49 +03:00
parent 8bcf0d1d01
commit d7ea7da070

View File

@@ -350,7 +350,7 @@ if [ "x$(id -u)" != 'x0' ]; then
check_result 1 "Script can be run executed only by root"
fi
if [ -d "/usr/local/hestia" ]; then
if [ -d "/usr/local/hestia" ] && [ "$force" = "no" ]; then
check_result 1 "Hestia install detected. Unable to continue"
fi