Browse Source

feat: functions to modules

pull/15/head
Daniel Gibbs 2 years ago
parent
commit
a0faaaeade
  1. 8
      Dockerfile.ubuntu-2204
  2. 6
      entrypoint-user.sh

8
Dockerfile.ubuntu-2204

@ -106,11 +106,11 @@ RUN echo "**** Get LinuxGSM Modules ****" \
&& git clone --filter=blob:none --no-checkout --sparse https://github.com/GameServerManagers/LinuxGSM.git \ && git clone --filter=blob:none --no-checkout --sparse https://github.com/GameServerManagers/LinuxGSM.git \
&& cd LinuxGSM \ && cd LinuxGSM \
&& git sparse-checkout set --cone \ && git sparse-checkout set --cone \
&& git sparse-checkout set lgsm/functions \ && git sparse-checkout set lgsm/modules \
&& git checkout ${LGSM_GITHUBBRANCH} \ && git checkout ${LGSM_GITHUBBRANCH} \
&& mkdir -p /linuxgsm/lgsm/functions \ && mkdir -p /linuxgsm/lgsm/modules \
&& mv lgsm/functions/* /linuxgsm/lgsm/functions \ && mv lgsm/modules/* /linuxgsm/lgsm/modules \
&& chmod +x /linuxgsm/lgsm/functions/* \ && chmod +x /linuxgsm/lgsm/modules/* \
&& rm -rf /linuxgsm/LinuxGSM \ && rm -rf /linuxgsm/LinuxGSM \
&& chown -R $USERNAME:$USERNAME /linuxgsm && chown -R $USERNAME:$USERNAME /linuxgsm

6
entrypoint-user.sh

@ -10,10 +10,10 @@ fi
# Clear functions directory if not master # Clear functions directory if not master
if [ "${LGSM_GITHUBBRANCH}" != "master" ]; then if [ "${LGSM_GITHUBBRANCH}" != "master" ]; then
echo -e "not master branch, clearing functions directory" echo -e "not master branch, clearing functions directory"
rm -rf /linuxgsm/lgsm/functions/* rm -rf /linuxgsm/lgsm/modules/*
elif [ -d "/linuxgsm/lgsm/functions" ]; then elif [ -d "/linuxgsm/lgsm/modules" ]; then
echo -e "ensure all functions are executable" echo -e "ensure all functions are executable"
chmod +x /linuxgsm/lgsm/functions/* chmod +x /linuxgsm/lgsm/modules/*
fi fi
# Install game server # Install game server

Loading…
Cancel
Save