Add Ubuntu scripts

This commit is contained in:
MatMoul 2023-11-19 20:01:32 +01:00
parent 990b39cb53
commit b2a29a661c
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ showHelp() {
echo "init.sh" echo "init.sh"
echo "" echo ""
echo "use :" echo "use :"
echo "sh init.sh [options]" echo "bash init.sh [options]"
echo " -b | --base-url url" echo " -b | --base-url url"
} }

View File

@ -7,7 +7,7 @@ showHelp() {
echo "ubuntu.sh" echo "ubuntu.sh"
echo "" echo ""
echo "use :" echo "use :"
echo "sh ubuntu.sh [options]" echo "bash ubuntu.sh [options]"
echo " -b | --base-url url" echo " -b | --base-url url"
} }
@ -16,7 +16,7 @@ main() {
apt update -y apt update -y
apt install -y wget apt install -y wget
wget -O /tmp/init.sh "${BASE_URL}"/ubuntu-"${UBUNTUVER}"/init.sh wget -O /tmp/init.sh "${BASE_URL}"/ubuntu-"${UBUNTUVER}"/init.sh
sh /tmp/init.sh -b "${BASE_URL}" bash /tmp/init.sh -b "${BASE_URL}"
rm /tmp/init.sh rm /tmp/init.sh
} }