Update scripts/commands/extensions/install.sh

This commit is contained in:
denis 2024-11-03 04:28:37 -05:00
parent 8061c1dd5b
commit f49a4c52a0

View file

@ -38,7 +38,7 @@ InstallExtension() {
fi fi
fi fi
# Return to the Pterodactyl installation folder. # Return to the Pelican installation folder.
cd "$FOLDER" || cdhalt cd "$FOLDER" || cdhalt
# Get all strings from the conf.yml file and make them accessible as variables. # Get all strings from the conf.yml file and make them accessible as variables.
@ -1215,7 +1215,7 @@ InstallExtension() {
EXTENSION_IDENTIFIER="$identifier" \ EXTENSION_IDENTIFIER="$identifier" \
EXTENSION_TARGET="$target" \ EXTENSION_TARGET="$target" \
EXTENSION_VERSION="$version" \ EXTENSION_VERSION="$version" \
PTERODACTYL_DIRECTORY="$FOLDER" \ PELICAN_DIRECTORY="$FOLDER" \
BLUEPRINT_VERSION="$VERSION" \ BLUEPRINT_VERSION="$VERSION" \
BLUEPRINT_DEVELOPER="$dev" \ BLUEPRINT_DEVELOPER="$dev" \
bash .blueprint/extensions/"$identifier"/private/install.sh bash .blueprint/extensions/"$identifier"/private/install.sh
@ -1225,7 +1225,7 @@ InstallExtension() {
EXTENSION_IDENTIFIER=\"$identifier\" \ EXTENSION_IDENTIFIER=\"$identifier\" \
EXTENSION_TARGET=\"$target\" \ EXTENSION_TARGET=\"$target\" \
EXTENSION_VERSION=\"$version\" \ EXTENSION_VERSION=\"$version\" \
PTERODACTYL_DIRECTORY=\"$FOLDER\" \ PELICAN_DIRECTORY=\"$FOLDER\" \
BLUEPRINT_VERSION=\"$VERSION\" \ BLUEPRINT_VERSION=\"$VERSION\" \
BLUEPRINT_DEVELOPER=\"$dev\" \ BLUEPRINT_DEVELOPER=\"$dev\" \
bash .blueprint/extensions/$identifier/private/install.sh bash .blueprint/extensions/$identifier/private/install.sh
@ -1292,7 +1292,7 @@ Command() {
} &>> "$BLUEPRINT__DEBUG" } &>> "$BLUEPRINT__DEBUG"
# Make sure all files have correct permissions. # Make sure all files have correct permissions.
PRINT INFO "Changing Pterodactyl file ownership to '$OWNERSHIP'.." PRINT INFO "Changing Pelican file ownership to '$OWNERSHIP'.."
find "$FOLDER/" \ find "$FOLDER/" \
-path "$FOLDER/node_modules" -prune \ -path "$FOLDER/node_modules" -prune \
-o -exec chown "$OWNERSHIP" {} + &>> "$BLUEPRINT__DEBUG" -o -exec chown "$OWNERSHIP" {} + &>> "$BLUEPRINT__DEBUG"