bf518ee48c
Previously upgrading would update Blueprint to the latest source files, not a stable version. This should be different now.
13 lines
392 B
Bash
13 lines
392 B
Bash
#!/bin/bash
|
|
|
|
# $1 Pterodactyl directory (/var/www/pterodactyl)
|
|
|
|
cd $1/tools/tmp;
|
|
if [[ $2 == "dev" ]]; then
|
|
git clone https://github.com/teamblueprint/main.git;
|
|
else
|
|
git clone -b $(basename $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/teamblueprint/main/releases/latest)) https://github.com/teamblueprint/main.git
|
|
fi;
|
|
cp -R main/* $1/;
|
|
rm -R $1/.blueprint;
|
|
rm -R *;
|