Browse Source

Autoinstall script fix

Andrea Pollastri 5 years ago
parent
commit
1af2f902e7
3 changed files with 7 additions and 5 deletions
  1. 1 1
      app/Http/Controllers/ServersController.php
  2. 3 2
      go.sh
  3. 3 2
      storage/app/scripts/install.sh

+ 1 - 1
app/Http/Controllers/ServersController.php

@@ -31,7 +31,7 @@ class ServersController extends Controller
             'location'  => $request->location,
             'location'  => $request->location,
             'ip'        => $request->ip,
             'ip'        => $request->ip,
             'port'      => 22,
             'port'      => 22,
-            'username'  => hash('crc32', substr($usrchars, 0, 64)).uniqid().substr($pwdchars, 0, 11),
+            'username'  => hash('crc32', substr($usrchars, 0, 64)).uniqid().substr($usrchars, 0, 11),
             'password'  => substr($pwdchars, 0, 64),
             'password'  => substr($pwdchars, 0, 64),
             'dbroot'    => substr($pwdchars, 0, 48),
             'dbroot'    => substr($pwdchars, 0, 48),
             'servercode'=> md5(uniqid().microtime().$request->name),
             'servercode'=> md5(uniqid().microtime().$request->name),

+ 3 - 2
go.sh

@@ -386,8 +386,9 @@ echo "PASSWORD: 12345678"
 echo "After login, you can update your data into 'settings' section"
 echo "After login, you can update your data into 'settings' section"
 echo ""
 echo ""
 echo "The root user SSH login was disabled for security reasons."
 echo "The root user SSH login was disabled for security reasons."
-echo "Use cipi (sudo) user to login into your server."
-echo "SSH 'cipi' password: $PASS"
+echo "Use 'cipi' (sudo) user to login into your server:"
+echo "SSH username: cipi"
+echo "SSH password: $PASS"
 echo "Database 'root' password: $DBPASS"
 echo "Database 'root' password: $DBPASS"
 echo ""
 echo ""
 echo "Enjoy Cipi :)"
 echo "Enjoy Cipi :)"

+ 3 - 2
storage/app/scripts/install.sh

@@ -668,8 +668,9 @@ echo ""
 echo "Use $REMOTE to manage your server."
 echo "Use $REMOTE to manage your server."
 echo ""
 echo ""
 echo "The root user SSH login was disabled for security reasons."
 echo "The root user SSH login was disabled for security reasons."
-echo "Use this user to login into your server."
-echo "SSH user: $USER / $PASS"
+echo "Use these new credentials to login into your server:"
+echo "SSH username: $USER"
+echo "SSH password: $PASS"
 echo "Database 'root' password: $DBPASS"
 echo "Database 'root' password: $DBPASS"
 echo ""
 echo ""
 echo "Enjoy Cipi :)"
 echo "Enjoy Cipi :)"