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

trying to fix directory perms

parent b03a12da
No related branches found
No related tags found
No related merge requests found
Pipeline #2702 passed
......@@ -45,9 +45,9 @@ RUN chmod 0644 /etc/cron.d/backup
# Add papermc user and group, then change ownership of /papermc and /backup to this user
RUN groupadd -g ${GUID} ${papermc_group}
RUN useradd -g ${GUID} -l -M -s /bin/false -u ${GUID} ${papermc_user}
RUN chown -R ${GUID} /papermc/
RUN chown -R ${GUID} /backup/
RUN chown -R ${GUID} /web/
RUN chown -R ${papermc_user}:${papermc_group} /papermc/
RUN chown -R ${papermc_user}:${papermc_group} /backup/
RUN chown -R ${papermc_user}:${papermc_group} /web/
# Get package lists, install needed packages, then remove the package lists again (to save space)
# "webp" is needed to generate images with better compression for the dynamic map (optional, needs further configuration in dynmap-plugin´s config file)
......
......@@ -6,5 +6,5 @@ read -p "Gib das auszuwählende backup ein ohne Dateiendung: " var
echo "Alle Daten werden nach bestätigung gelöscht und das ausgewählte Backup wiederhergestellt."
read
rm -r /papermc/*
tar xvzf $var.tar.gz --directory=/papermc
tar xvzf $var.tar.gz --directory=/
echo
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