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 \
&& cd LinuxGSM \
&& git sparse-checkout set --cone \
&& git sparse-checkout set lgsm/functions \
&& git sparse-checkout set lgsm/modules \
&& git checkout ${LGSM_GITHUBBRANCH} \
&& mkdir -p /linuxgsm/lgsm/functions \
&& mv lgsm/functions/* /linuxgsm/lgsm/functions \
&& chmod +x /linuxgsm/lgsm/functions/* \
&& mkdir -p /linuxgsm/lgsm/modules \
&& mv lgsm/modules/* /linuxgsm/lgsm/modules \
&& chmod +x /linuxgsm/lgsm/modules/* \
&& rm -rf /linuxgsm/LinuxGSM \
&& chown -R $USERNAME:$USERNAME /linuxgsm

6
entrypoint-user.sh

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

Loading…
Cancel
Save