Skip to content
Snippets Groups Projects
Commit c0b76ae9 authored by TheBroTMv2's avatar TheBroTMv2
Browse files

revert changes to ARG in dockerfile

parent 1c395b7e
No related branches found
No related tags found
1 merge request!7Beta
Pipeline #2663 passed
......@@ -9,9 +9,9 @@ LABEL org.label-schema.name="clspigot-docker" \
# Execute all the following instructions in the container as user "root"
USER root
# User and group used to run the PaperMC server (build time argument, defaulting to "papermc")
ARG papermc_user=papermc \
papermc_group=papermc \
vcsref=""
ARG papermc_user=papermc
ARG papermc_group=papermc
ARG vcsref=""
LABEL org.label-schema.vcs-ref=${vcsref}
......
......@@ -10,10 +10,10 @@ dateformat=$(date +%F_%H)UTC$ext
else
mkdir -p $backupdir
fi
screen -r mc -p 0 -X stuff "auto-save off" #Sends an input to screen-session conatining the papermc-server to disable world saving from minecraft
screen -r mc -p 0 -X stuff "auto-save off" #Sends an input to screen-session conatining the papermc-server to disable world saving from minecraft
tar -czvf $backupdir$dateformat --exclude="plugins/dynmap/web/tiles" --exclude="cache/" --exclude="*.gz" --exclude="spigo*.jar" --exclude="paper*.jar" * #creates a compressed tarball of the minecraft folder
screen -r mc -p 0 -X stuff "auto-save on" #enables it again
chmod +rw $backupdir$dateformat
screen -r mc -p 0 -X stuff "auto-save on" #enables it again
chmod +rw $backupdir$dateformat
echo "Backup complete."
exit 0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment