Skip to content

Commit d48b247

Browse files
committed
#315 Fix sudoless actions in basescript and add ALLOW_RUN_WITH_SUDO option to nginx-proxy-automation
1 parent 95c9ac7 commit d48b247

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.env.sample

+11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88
#
99
#-----------------------------------------------------------------------
1010

11+
#-----------------------------------------------------------------------
12+
#
13+
# Script requirements
14+
#
15+
16+
# PID file the running script
17+
PID_FILE=.fresh_start.pid
18+
19+
# Allow run commands with sudo if needed
20+
ALLOW_RUN_WITH_SUDO=false
21+
1122
#-----------------------------------------------------------------------
1223
#
1324
# NGINX-Proxy containers/service

bin/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ REPLACE_LETSENCRYPT_SERVICE_NAME="nginx-proxy-automation-letsencrypt"
5757
# md5 checksum for .env and docker-compose.yml files
5858
#
5959
MD5_SUM_DOCKER_COMPOSE=11b79cee40db0714cb35d0bce182cf3e
60-
MD5_SUM_ENV_SAMPLE=7a8b027dc2bf252a8c91d23f74e2bd2a
60+
MD5_SUM_ENV_SAMPLE=2c7e33f99c31b958eb1f524090fe4fa1

bin/fresh-start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ done
515515
run_function check_local_env_file
516516

517517
# Specific PID File if needs to run multiple scripts
518-
NEW_PID_FILE=${PID_FILE_FRESH_INSTALL:-".fresh_start"}
518+
NEW_PID_FILE=${PID_FILE_FRESH_INSTALL:-".fresh_start.pid"}
519519

520520
# Run initial check function
521521
run_function starts_initial_check $NEW_PID_FILE

0 commit comments

Comments
 (0)