diff --git a/web/app/Models/HostingSubscription.php b/web/app/Models/HostingSubscription.php index 3abc600..c61f423 100644 --- a/web/app/Models/HostingSubscription.php +++ b/web/app/Models/HostingSubscription.php @@ -53,7 +53,7 @@ class HostingSubscription extends Model $model->system_username = $create['system_username']; $model->system_password = $create['system_password']; } else { - throw new \Exception('System username or password not created'); + throw new \Exception('System username or password not created: Error: ' .json_encode($create)); } }); @@ -185,7 +185,10 @@ class HostingSubscription extends Model } - return []; + return [ + 'error'=>true, + 'message'=>$createLinuxWebUserOutput + ]; } private static function _generateUsername($string) diff --git a/web/update.sh b/web/update.sh index a933374..fde591f 100644 --- a/web/update.sh +++ b/web/update.sh @@ -39,7 +39,7 @@ cp /usr/local/phyre/update/web/package.json /usr/local/phyre/web/package.json systemctl stop phyre -apt-remove phyre -y +apt remove phyre-nginx -y OS=$(lsb_release -si) OS_LOWER=$(echo $OS | tr '[:upper:]' '[:lower:]')