113113 echo " Checksum verified."
114114fi
115115
116- read -p " Do you want to delete all files and folders in $install_dir except the backup folder? (y/n) [y]: " delete_confirm
116+ read -p " Do you want to delete all files and folders in \" $install_dir \" except the backup folder? (y/n) [y]: " delete_confirm
117117delete_confirm=${delete_confirm:- y}
118118if [ " $delete_confirm " != " y" ]; then
119119 echo " Deletion canceled."
@@ -125,7 +125,7 @@ if [ $? -ne 0 ]; then
125125 echo " Failed to delete old files, aborting"
126126 exit 1
127127fi
128- echo " Deleted all files and folders in $install_dir except the backup folder."
128+ echo " Deleted all files and folders in \" $install_dir \" except the backup folder."
129129
130130echo " Extracting tarball."
131131tar -xzf panel.tar.gz -C " $install_dir "
@@ -163,7 +163,7 @@ if [ -f "$backup_dir/$db_database.backup" ]; then
163163 fi
164164fi
165165
166- cd $install_dir
166+ cd " $install_dir "
167167
168168echo " Installing Composer"
169169COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader --no-interaction
@@ -183,13 +183,13 @@ echo "Updating database"
183183php artisan migrate --seed --force
184184
185185echo " Setting Permissions"
186- chmod_command=" chmod -R 755 storage/* bootstrap/cache"
186+ chmod_command=" chmod -R 755 \" $install_dir \" / storage/* \" $install_dir \" / bootstrap/cache"
187187eval $chmod_command
188188if [ $? -ne 0 ]; then
189189 echo " Failed to run chmod, Please run the following commands manually:"
190190 echo " sudo $chmod_command "
191191fi
192- chown_command=" chown -R $owner :$group $install_dir "
192+ chown_command=" chown -R $owner :$group \" $install_dir \" "
193193eval $chown_command
194194if [ $? -ne 0 ]; then
195195 echo " Failed to run chown, Please run the following commands manually:"
0 commit comments