Quotes
This commit is contained in:
parent
848920c0cd
commit
f1a691b759
|
@ -3862,8 +3862,8 @@ function install_blog {
|
||||||
|
|
||||||
# create a user
|
# create a user
|
||||||
cp /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/username.ini.example /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
cp /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/username.ini.example /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
||||||
HASHED_BLOG_PASSWORD=$(sha256sum $FULLBLOG_ADMIN_PASSWORD)
|
HASHED_BLOG_PASSWORD="$(sha256sum $FULLBLOG_ADMIN_PASSWORD)"
|
||||||
sed -i "s/yourpassword/$HASHED_BLOG_PASSWORD/g" /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
sed -i "s|yourpassword|'$HASHED_BLOG_PASSWORD'|g" /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
||||||
sed -i 's/encryption = clear/encryption = sha256/g' /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
sed -i 's/encryption = clear/encryption = sha256/g' /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
||||||
|
|
||||||
nginx_ensite $FULLBLOG_DOMAIN_NAME
|
nginx_ensite $FULLBLOG_DOMAIN_NAME
|
||||||
|
|
Loading…
Reference in New Issue