Forgot to add custom controller support and made extensions less of a hassle.
This commit is contained in:
parent
1830673a5a
commit
794860ff58
1 changed files with 8 additions and 0 deletions
|
@ -102,6 +102,10 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then
|
|||
cp $FILE .blueprint/tmp/$ZIP;
|
||||
cd .blueprint/tmp;
|
||||
unzip $ZIP;
|
||||
if [[ ! -f "conf.yml" ]]; then echo ok > /dev/null; else
|
||||
mkdir $3;
|
||||
cp -R ./* $3/;
|
||||
fi;
|
||||
cd /var/www/pterodactyl;
|
||||
rm .blueprint/tmp/$ZIP;
|
||||
|
||||
|
@ -221,6 +225,10 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then
|
|||
echo $(cat .blueprint/tmp/$3/$controller_location) > app/Http/Controllers/Admin/Extensions/$identifier/$ADMINCONTROLLER_NAME;
|
||||
fi;
|
||||
|
||||
if [[ $controller_type == "custom" ]]; then
|
||||
cp .blueprint/tmp/$3/$controller_location app/Http/Controllers/Admin/Extensions/$identifier/${identifier}ExtensionController.php;
|
||||
fi;
|
||||
|
||||
echo $ADMINROUTE_RESULT >> routes/admin.php;
|
||||
|
||||
sed -i "s~<!--␀replace␀-->~$ADMINBUTTON_RESULT\n<!--␀replace␀-->~g" resources/views/admin/extensions.blade.php > /dev/null;
|
||||
|
|
Loading…
Reference in a new issue