Skip to content

Commit

Permalink
Merge pull request #37 from leNicDev/master
Browse files Browse the repository at this point in the history
update altv cdn url
  • Loading branch information
pixlcrashr authored Aug 5, 2023
2 parents 90f8b44 + 63c74f8 commit 71a8bc2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .docker/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ apt-get install -y wget gnupg libatomic1 libc-bin apt-transport-https

# setup default altv-server files
mkdir -p /opt/altv/modules /opt/altv/resources /opt/altv/data
wget --no-cache -q -O /opt/altv/altv-server https://cdn.altv.mp/server/${BRANCH}/x64_linux/altv-server
wget --no-cache -q -O /opt/altv/altv-server https://cdn.alt-mp.com/server/${BRANCH}/x64_linux/altv-server
chmod +x /opt/altv/altv-server /root/entrypoint.sh

# setup optional vehicle and clothing data
[ "$INSTALL_VEHMODS" = "true" ] && wget --no-cache -q -O /opt/altv/data/vehmodels.bin https://cdn.altv.mp/data/${BRANCH}/data/vehmodels.bin
[ "$INSTALL_VEHMODELS" = "true" ] && wget --no-cache -q -O /opt/altv/data/vehmods.bin https://cdn.altv.mp/data/${BRANCH}/data/vehmods.bin
[ "$INSTALL_CLOTHES" = "true" ] && wget --no-cache -q -O /opt/altv/data/clothes.bin https://cdn.altv.mp/data/${BRANCH}/data/clothes.bin
[ "$INSTALL_PEDMODELS" = "true" ] && wget --no-cache -q -O /opt/altv/data/pedmodels.bin https://cdn.altv.mp/data/${BRANCH}/data/pedmodels.bin
[ "$INSTALL_VEHMODS" = "true" ] && wget --no-cache -q -O /opt/altv/data/vehmodels.bin https://cdn.alt-mp.com/data/${BRANCH}/data/vehmodels.bin
[ "$INSTALL_VEHMODELS" = "true" ] && wget --no-cache -q -O /opt/altv/data/vehmods.bin https://cdn.alt-mp.com/data/${BRANCH}/data/vehmods.bin
[ "$INSTALL_CLOTHES" = "true" ] && wget --no-cache -q -O /opt/altv/data/clothes.bin https://cdn.alt-mp.com/data/${BRANCH}/data/clothes.bin
[ "$INSTALL_PEDMODELS" = "true" ] && wget --no-cache -q -O /opt/altv/data/pedmodels.bin https://cdn.alt-mp.com/data/${BRANCH}/data/pedmodels.bin

# setup optional js module
if [ "$INSTALL_JS_MODULE" = "true" ]; then
mkdir -p /opt/altv/modules/js-module/
wget --no-cache -q -O /opt/altv/modules/js-module/libnode.so.${LIBNODE_VERSION} https://cdn.altv.mp/js-module/${BRANCH}/x64_linux/modules/js-module/libnode.so.${LIBNODE_VERSION}
wget --no-cache -q -O /opt/altv/modules/js-module/libjs-module.so https://cdn.altv.mp/js-module/${BRANCH}/x64_linux/modules/js-module/libjs-module.so
wget --no-cache -q -O /opt/altv/modules/js-module/libjs-bytecode-module.so https://cdn.altv.mp/js-bytecode-module/${BRANCH}/x64_linux/modules/libjs-bytecode-module.so
wget --no-cache -q -O /opt/altv/modules/js-module/libnode.so.${LIBNODE_VERSION} https://cdn.alt-mp.com/js-module/${BRANCH}/x64_linux/modules/js-module/libnode.so.${LIBNODE_VERSION}
wget --no-cache -q -O /opt/altv/modules/js-module/libjs-module.so https://cdn.alt-mp.com/js-module/${BRANCH}/x64_linux/modules/js-module/libjs-module.so
wget --no-cache -q -O /opt/altv/modules/js-module/libjs-bytecode-module.so https://cdn.alt-mp.com/js-bytecode-module/${BRANCH}/x64_linux/modules/libjs-bytecode-module.so
fi

# setup optional csharp module
Expand All @@ -42,9 +42,9 @@ if [ "$INSTALL_CSHARP_MODULE" = "true" ]; then
apt-get update
apt-get install dotnet-runtime-6.0 -y
# install altV module
wget --no-cache -q -O /opt/altv/modules/libcsharp-module.so https://cdn.altv.mp/coreclr-module/${BRANCH}/x64_linux/modules/libcsharp-module.so
wget --no-cache -q -O /opt/altv/modules/libcsharp-module.so https://cdn.alt-mp.com/coreclr-module/${BRANCH}/x64_linux/modules/libcsharp-module.so
mkdir -p /usr/share/dotnet/host/fxr/
wget --no-cache -q -O /opt/altv/AltV.Net.Host.dll https://cdn.altv.mp/coreclr-module/${BRANCH}/x64_linux/AltV.Net.Host.dll
wget --no-cache -q -O /opt/altv/AltV.Net.Host.dll https://cdn.alt-mp.com/coreclr-module/${BRANCH}/x64_linux/AltV.Net.Host.dll
cat <<EOF >/opt/altv/AltV.Net.Host.runtimeconfig.json
{
"runtimeOptions": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/getVersion.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

wget --no-cache -qO- http://cdn.altv.mp/server/$1/x64_linux/update.json > /tmp/update.json
wget --no-cache -qO- http://cdn.alt-mp.com/server/$1/x64_linux/update.json > /tmp/update.json

if [ $(cat /tmp/update.json | jq '.version') == 'null' ]
then
Expand Down

0 comments on commit 71a8bc2

Please sign in to comment.