mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-18 10:44:03 +00:00
immichframe: write the creds file the way the other scripts do
Sixty install scripts use cat <<EOF for their .creds file and exactly one used an echo block, which was this one. Match the rest. The install writes the file, the update appends: on an existing container the file may already be there from the original install, and the password line is only added when the unit has none.
This commit is contained in:
@@ -83,10 +83,10 @@ function update_script() {
|
||||
msg_info "Setting Admin Password"
|
||||
ADMIN_PASSWORD=$(openssl rand -hex 16)
|
||||
sed -i "/^Environment=DOTNET_CONTENTROOT=/a Environment=IMMICHFRAME_ADMIN_PASSWORD=${ADMIN_PASSWORD}" /etc/systemd/system/immichframe.service
|
||||
{
|
||||
echo "ImmichFrame Admin User: admin"
|
||||
echo "ImmichFrame Admin Password: $ADMIN_PASSWORD"
|
||||
} >>~/immichframe.creds
|
||||
cat <<EOF >>~/immichframe.creds
|
||||
ImmichFrame Admin User: admin
|
||||
ImmichFrame Admin Password: $ADMIN_PASSWORD
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
msg_ok "Set Admin Password (see ~/immichframe.creds)"
|
||||
fi
|
||||
|
||||
@@ -61,10 +61,10 @@ msg_ok "Setup ImmichFrame"
|
||||
|
||||
msg_info "Creating Service"
|
||||
ADMIN_PASSWORD=$(openssl rand -hex 16)
|
||||
{
|
||||
echo "ImmichFrame Admin User: admin"
|
||||
echo "ImmichFrame Admin Password: $ADMIN_PASSWORD"
|
||||
} >>~/immichframe.creds
|
||||
cat <<EOF >~/immichframe.creds
|
||||
ImmichFrame Admin User: admin
|
||||
ImmichFrame Admin Password: $ADMIN_PASSWORD
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/immichframe.service
|
||||
[Unit]
|
||||
Description=ImmichFrame Digital Photo Frame
|
||||
|
||||
Reference in New Issue
Block a user