#!/bin/bash set -euo pipefail source ./_common.sh app="${YNH_APP_INSTANCE_NAME:-albumik}" mkdir -p "$install_dir" cp -a "$YNH_APP_BASEDIR/backend" "$YNH_APP_BASEDIR/web" "$YNH_APP_BASEDIR/doc" "$install_dir"/ chown -R "$app:$app" "$install_dir" systemctl daemon-reload systemctl restart "$app" nginx -t systemctl reload nginx