Merge pull request 'suggestion-76-files-migration' (#40) from suggestion-76 into develop
All checks were successful
/ build-docker (push) Successful in 15m28s
All checks were successful
/ build-docker (push) Successful in 15m28s
Reviewed-on: #40 Reviewed-by: oznobys <oznobys@noreply.localhost>
This commit is contained in:
commit
57a576a0d1
43
Dockerfile
43
Dockerfile
@ -9,23 +9,25 @@ ADD ./src ${CONFIG_PATH}
|
|||||||
RUN mkdir ${DATA_PATH}
|
RUN mkdir ${DATA_PATH}
|
||||||
|
|
||||||
|
|
||||||
# Add symlinks to Default Minecraft files
|
# Add symlinks to Minecraft Vanilla files
|
||||||
RUN touch ${DATA_PATH}/banned-ips.json && \
|
RUN mkdir ${DATA_PATH}/Vanilla && \
|
||||||
ln -sf ${DATA_PATH}/banned-ips.json ${CONFIG_PATH}
|
touch ${DATA_PATH}/Vanilla/banned-ips.json && \
|
||||||
RUN touch ${DATA_PATH}/banned-players.json && \
|
ln -sf ${DATA_PATH}/Vanilla/banned-ips.json ${CONFIG_PATH} && \
|
||||||
ln -sf ${DATA_PATH}/banned-players.json ${CONFIG_PATH}
|
touch ${DATA_PATH}/Vanilla/banned-players.json && \
|
||||||
RUN mkdir ${DATA_PATH}/logs && \
|
ln -sf ${DATA_PATH}/Vanilla/banned-players.json ${CONFIG_PATH} && \
|
||||||
ln -sf ${DATA_PATH}/logs ${CONFIG_PATH}
|
mkdir ${DATA_PATH}/Vanilla/logs && \
|
||||||
RUN touch ${DATA_PATH}/ops.json && \
|
ln -sf ${DATA_PATH}/Vanilla/logs ${CONFIG_PATH} && \
|
||||||
ln -sf ${DATA_PATH}/ops.json ${CONFIG_PATH}
|
touch ${DATA_PATH}/Vanilla/ops.json && \
|
||||||
RUN touch ${DATA_PATH}/usercache.json && \
|
ln -sf ${DATA_PATH}/Vanilla/ops.json ${CONFIG_PATH} && \
|
||||||
ln -sf ${DATA_PATH}/usercache.json ${CONFIG_PATH}
|
touch ${DATA_PATH}/Vanilla/usercache.json && \
|
||||||
RUN touch ${DATA_PATH}/whitelist.json && \
|
ln -sf ${DATA_PATH}/Vanilla/usercache.json ${CONFIG_PATH} && \
|
||||||
ln -sf ${DATA_PATH}/whitelist.json ${CONFIG_PATH}
|
touch ${DATA_PATH}/Vanilla/whitelist.json && \
|
||||||
|
ln -sf ${DATA_PATH}/Vanilla/whitelist.json ${CONFIG_PATH}
|
||||||
|
|
||||||
# Add symlinks to PlasmoVoice files
|
# Add symlinks to PlasmoVoice files
|
||||||
RUN touch ${DATA_PATH}/pv-voice_mutes.json && \
|
RUN mkdir ${DATA_PATH}/PlasmoVoice && \
|
||||||
ln -sf ${DATA_PATH}/pv-voice_mutes.json \
|
touch ${DATA_PATH}/PlasmoVoice/pv-voice_mutes.json && \
|
||||||
|
ln -sf ${DATA_PATH}/PlasmoVoice/pv-voice_mutes.json \
|
||||||
${CONFIG_PATH}/plugins/PlasmoVoice/voice_mutes.json
|
${CONFIG_PATH}/plugins/PlasmoVoice/voice_mutes.json
|
||||||
|
|
||||||
# Add symlinks to SuperVanish files
|
# Add symlinks to SuperVanish files
|
||||||
@ -92,6 +94,17 @@ ENV SKINSRESTORER_DB_PASSWORD=0000
|
|||||||
WORKDIR ${WORKDIR_PATH}/config
|
WORKDIR ${WORKDIR_PATH}/config
|
||||||
|
|
||||||
CMD \
|
CMD \
|
||||||
|
# Remove after migrated
|
||||||
|
mkdir -p ${DATA_PATH}/Vanilla && \
|
||||||
|
if [ -e ${DATA_PATH}/banned-ips.json ]; then mv ${DATA_PATH}/banned-ips.json ${DATA_PATH}/Vanilla; fi && \
|
||||||
|
if [ -e ${DATA_PATH}/banned-players.json ]; then mv ${DATA_PATH}/banned-players.json ${DATA_PATH}/Vanilla; fi && \
|
||||||
|
if [ -e ${DATA_PATH}/logs ]; then mv ${DATA_PATH}/logs ${DATA_PATH}/Vanilla; fi && \
|
||||||
|
if [ -e ${DATA_PATH}/ops.json ]; then mv ${DATA_PATH}/ops.json ${DATA_PATH}/Vanilla; fi && \
|
||||||
|
if [ -e ${DATA_PATH}/usercache.json ]; then mv ${DATA_PATH}/usercache.json ${DATA_PATH}/Vanilla; fi && \
|
||||||
|
if [ -e ${DATA_PATH}/whitelist.json ]; then mv ${DATA_PATH}/whitelist.json ${DATA_PATH}/Vanilla; fi && \
|
||||||
|
mkdir -p ${DATA_PATH}/PlasmoVoice && \
|
||||||
|
if [ -e ${DATA_PATH}/pv-voice_mutes.json ]; then mv ${DATA_PATH}/pv-voice_mutes.json ${DATA_PATH}/PlasmoVoice; fi && \
|
||||||
|
|
||||||
# Create and switch to user with desired UID and GID.
|
# Create and switch to user with desired UID and GID.
|
||||||
# All processes that create/change files in ${DATA_PATH}
|
# All processes that create/change files in ${DATA_PATH}
|
||||||
# must be run under this user.
|
# must be run under this user.
|
||||||
|
Loading…
Reference in New Issue
Block a user