summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0fc89b9)
Fix root.conf export format
-# User login (apg -M L -a 0 -m 8 -x 8 -d -n 1)
-USERLOGIN=`apg -M L -a 0 -m 8 -x 8 -d -n 1`
+# User login (tr -dc 'a-z' < /dev/urandom | fold -w 8 | head -n 1)
+USERLOGIN=`tr -dc 'a-z' < /dev/urandom | fold -w 8 | head -n 1`
# User password (apg -m 32 -x 32 -a 0 -d -n 1)
USERPASS=`apg -m 32 -x 32 -a 0 -d -n 1`
# User password (apg -m 32 -x 32 -a 0 -d -n 1)
USERPASS=`apg -m 32 -x 32 -a 0 -d -n 1`
# Append every config parameters
for i in `cat config/*.conf | perl -pne 'undef $_ if /^#/; s/=.*$//'`; do
# Append every config parameters
for i in `cat config/*.conf | perl -pne 'undef $_ if /^#/; s/=.*$//'`; do
- eval echo ${i}=\'\$$i\' | tee -a root.conf
+ echo "$i='$(eval echo \$$i)'" | tee -a root.conf