mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-04 04:24:31 +01:00
Refactor credential output to use heredoc syntax
This commit is contained in:
committed by
GitHub
parent
01751116a0
commit
6e007edf9d
@@ -39,12 +39,11 @@ sed -i \
|
||||
-e "s|^dataPath: .*|dataPath: /opt/wikijs_data|" \
|
||||
/opt/wikijs/config.yml
|
||||
ADMIN_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-16)
|
||||
{
|
||||
echo ""
|
||||
echo "Wiki.js Admin"
|
||||
echo "Email: admin@example.com"
|
||||
echo "Password: ${ADMIN_PASS}"
|
||||
} >>~/wikijs.creds
|
||||
cat <<EOF >~/wikijs.creds
|
||||
Wiki.js Admin
|
||||
Email: admin@example.com
|
||||
Password: ${ADMIN_PASS}
|
||||
EOF
|
||||
msg_ok "Configured Wiki.js"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
||||
Reference in New Issue
Block a user