feat core
: remove _FOLDER variable for changing the pterodactyl installation folder
This commit is contained in:
parent
c08aaecb34
commit
6faa0c365b
1 changed files with 0 additions and 13 deletions
13
blueprint.sh
13
blueprint.sh
|
@ -24,19 +24,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Allow non-default Pterodactyl installation folders.
|
|
||||||
# Should be removed in the future!
|
|
||||||
if [[ $_FOLDER != "" ]]; then
|
|
||||||
if [[ ( ! -f "$FOLDER/.blueprint/extensions/blueprint/private/db/version" ) && ( $FOLDER == "/var/www/pterodactyl" ) ]]; then
|
|
||||||
sed -i -E "s|FOLDER=\"/var/www/pterodactyl\" #;|FOLDER=\"$_FOLDER\" #;|g" "$_FOLDER"/blueprint.sh
|
|
||||||
echo "Variable has been replaced."
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
echo "Variable cannot be replaced right now."
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check for panels that are using Docker, which should have better support in the future.
|
# Check for panels that are using Docker, which should have better support in the future.
|
||||||
if [[ -f "/.dockerenv" ]]; then
|
if [[ -f "/.dockerenv" ]]; then
|
||||||
DOCKER="y"
|
DOCKER="y"
|
||||||
|
|
Loading…
Reference in a new issue