only generate a new password at the first install
This commit is contained in:
parent
6596d67f3b
commit
52b2609781
1 changed files with 8 additions and 5 deletions
|
@ -416,11 +416,14 @@ $install_bin/gst-register
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Generate a random password for the scheduler's access to the storage
|
# Generate a random password for the scheduler's access to the storage
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
SCHEDULER_STORAGE_PASS=`pwgen -N1 -c -n -s`
|
grep -q 'ls_ scheduler_storage_pass' $install_etc/campcaster-scheduler.xml
|
||||||
php -q $install_var_ls/storageServer/var/changeSchedulerPassword.php \
|
if [ $? = 0 ]; then
|
||||||
${SCHEDULER_STORAGE_PASS}
|
SCHEDULER_STORAGE_PASS=`pwgen -N1 -c -n -s`
|
||||||
sed -i -e "s/ls_scheduler_storage_pass/${SCHEDULER_STORAGE_PASS}/" \
|
php -q $install_var_ls/storageServer/var/changeSchedulerPassword.php \
|
||||||
$install_etc/campcaster-scheduler.xml
|
${SCHEDULER_STORAGE_PASS}
|
||||||
|
sed -i -e "s/ls_scheduler_storage_pass/${SCHEDULER_STORAGE_PASS}/" \
|
||||||
|
$install_etc/campcaster-scheduler.xml
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue