Move Foldergram media dir; add batch CT creator

Change Foldergram installation to store media and config under /opt/foldergram_media (create media dir, write env file there, update systemd EnvironmentFile). Update ct/foldergram.sh to remove temporary backup/restore during updates. Update json/foldergram.json config_path and add an info note about where to place media. Add tools/pve/ct-batch-create.sh — a new Proxmox CT batch-creator script (interactive/unattended modes, caching, storage selection) to download and deploy multiple community-scripts CTs.
This commit is contained in:
CanbiZ (MickLesk)
2026-04-21 09:12:10 +02:00
parent 154f7690c4
commit 3226c331d0
4 changed files with 293 additions and 15 deletions

View File

@@ -34,11 +34,6 @@ function update_script() {
systemctl stop foldergram
msg_ok "Stopped Service"
msg_info "Backing up configuration"
cp -r /opt/foldergram/data /opt/foldergram_data
cp /opt/foldergram/foldergram.env /opt/foldergram_env
msg_ok "Backed up configuration"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "foldergram" "foldergram/foldergram" "tarball"
msg_info "Installing Foldergram"
@@ -47,11 +42,6 @@ function update_script() {
$STD pnpm run build
msg_ok "Installed Foldergram"
msg_info "Restoring configuration"
mv /opt/foldergram_data /opt/foldergram/data
mv /opt/foldergram_env /opt/foldergram/foldergram.env
msg_ok "Restored configuration"
msg_info "Starting Service"
systemctl start foldergram
msg_ok "Started Service"