mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-17 18:24:08 +00:00
Compare commits
1 Commits
fix-immich
...
fix-poznot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d38344761d |
@@ -79,17 +79,6 @@ function update_script() {
|
|||||||
restore_backup
|
restore_backup
|
||||||
chown -R immichframe:immichframe /opt/immichframe
|
chown -R immichframe:immichframe /opt/immichframe
|
||||||
|
|
||||||
if ! grep -q '^Environment=IMMICHFRAME_ADMIN_PASSWORD=' /etc/systemd/system/immichframe.service; then
|
|
||||||
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
|
|
||||||
systemctl daemon-reload
|
|
||||||
msg_ok "Set Admin Password (see ~/immichframe.creds)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start immichframe
|
systemctl start immichframe
|
||||||
|
|||||||
@@ -50,8 +50,10 @@ function update_script() {
|
|||||||
restore_backup
|
restore_backup
|
||||||
|
|
||||||
msg_info "Running Poznote Initialization"
|
msg_info "Running Poznote Initialization"
|
||||||
chmod +x /opt/poznote/init.sh
|
POZNOTE_INIT=/opt/poznote/docker/init.sh
|
||||||
$STD /opt/poznote/init.sh
|
[[ -f "$POZNOTE_INIT" ]] || POZNOTE_INIT=/opt/poznote/init.sh
|
||||||
|
chmod +x "$POZNOTE_INIT"
|
||||||
|
$STD "$POZNOTE_INIT"
|
||||||
msg_ok "Initialized Poznote Data Directory"
|
msg_ok "Initialized Poznote Data Directory"
|
||||||
|
|
||||||
msg_info "Updating Nginx Configuration"
|
msg_info "Updating Nginx Configuration"
|
||||||
|
|||||||
@@ -60,11 +60,6 @@ chown -R immichframe:immichframe /opt/immichframe
|
|||||||
msg_ok "Setup ImmichFrame"
|
msg_ok "Setup ImmichFrame"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
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 >/etc/systemd/system/immichframe.service
|
cat <<EOF >/etc/systemd/system/immichframe.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=ImmichFrame Digital Photo Frame
|
Description=ImmichFrame Digital Photo Frame
|
||||||
@@ -79,7 +74,6 @@ ExecStart=/usr/bin/dotnet /opt/immichframe/ImmichFrame.WebApi.dll
|
|||||||
Environment=ASPNETCORE_URLS=http://0.0.0.0:8080
|
Environment=ASPNETCORE_URLS=http://0.0.0.0:8080
|
||||||
Environment=ASPNETCORE_ENVIRONMENT=Production
|
Environment=ASPNETCORE_ENVIRONMENT=Production
|
||||||
Environment=DOTNET_CONTENTROOT=/opt/immichframe
|
Environment=DOTNET_CONTENTROOT=/opt/immichframe
|
||||||
Environment=IMMICHFRAME_ADMIN_PASSWORD=$ADMIN_PASSWORD
|
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
|
|||||||
@@ -29,8 +29,10 @@ chown -R www-data:www-data /var/www/html
|
|||||||
msg_ok "Deployed Poznote"
|
msg_ok "Deployed Poznote"
|
||||||
|
|
||||||
msg_info "Running Poznote Initialization"
|
msg_info "Running Poznote Initialization"
|
||||||
chmod +x /opt/poznote/init.sh
|
POZNOTE_INIT=/opt/poznote/docker/init.sh
|
||||||
$STD /opt/poznote/init.sh
|
[[ -f "$POZNOTE_INIT" ]] || POZNOTE_INIT=/opt/poznote/init.sh
|
||||||
|
chmod +x "$POZNOTE_INIT"
|
||||||
|
$STD "$POZNOTE_INIT"
|
||||||
msg_ok "Initialized Poznote Data Directory"
|
msg_ok "Initialized Poznote Data Directory"
|
||||||
|
|
||||||
msg_info "Configuring Nginx"
|
msg_info "Configuring Nginx"
|
||||||
|
|||||||
Reference in New Issue
Block a user