Main: Updated way DB names are generated
Switch from geting folder count in /var/www to using SiteCount variable stored in /etc/ICTM/sites.count, installer.sh has static 1, AppendCMS gets the file an increments it by one. Fallback is build in for systems without sites.count
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#Creating DB
|
||||
db_suffix=`expr $(ls -l /var/www | grep -c ^d) - 1`
|
||||
db_name="fc_$db_suffix"
|
||||
db_user="fc_$db_suffix"
|
||||
db_name="fc_$SiteCount"
|
||||
db_user="fc_$SiteCount"
|
||||
db_pass=$(tr -dc 'A-Za-z0-9!#%()*+,-.:;<=>?@[]^_{|}~' </dev/urandom | head -c 30 ; echo)
|
||||
|
||||
#Storing DB Credentials
|
||||
|
||||
Reference in New Issue
Block a user