mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
linux - copy current variables.env to make temp one
This commit is contained in:
parent
8e15e2a400
commit
0580662cc8
1 changed files with 7 additions and 6 deletions
|
|
@ -35,14 +35,15 @@ function start() {
|
|||
# STEP1 #
|
||||
# Generate variables.env files to /tmp/ #
|
||||
#############################################
|
||||
log "ENTRYPOINT" "ℹ️" "Generate variables.env files to /tmp/ ..."
|
||||
printf "HTTP_PORT=80\nSERVER_NAME=example.com\nTEMP_NGINX=yes" > "/tmp/variables.env"
|
||||
result=$?
|
||||
log "ENTRYPOINT" "ℹ️" "Generate variables.env files to /tmp ..."
|
||||
cp /opt/bunkerweb/variables.env /tmp/variables.env
|
||||
result=$?
|
||||
if [ $result -ne 0 ];
|
||||
then
|
||||
log "ENTRYPOINT" "❌" "Your command exited with non-zero status $result"
|
||||
exit 1
|
||||
fi
|
||||
log "ENTRYPOINT" "❌" "Your command exited with non-zero status $result"
|
||||
exit 1
|
||||
fi
|
||||
printf "\nTEMP_NGINX=yes" >> /tmp/variables.env
|
||||
|
||||
#############################################
|
||||
# STEP2 #
|
||||
|
|
|
|||
Loading…
Reference in a new issue