HEX
Server: LiteSpeed
System: Linux CentOS-79-64-minimal 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: vishn3436 (5293)
PHP: 8.0.15
Disabled: NONE
Upload Files
File: //storage03/relica/relica-docker/rootfs/etc/cont-init.d/20-edit-relica-config
#!/usr/bin/with-contenv bash

## The newest version of Relica is downloaded every time this container is restarted so we don't need nor want automatic updates
sed -i '/^upgrade_policy = /{h;s/ = .*/ = "disabled"/};${x;/^$/{s//upgrade_policy = "disabled"/;H};x}' /opt/relica/config.toml

# $HOME is used as the location of the cache and config
# but these undocumented config variables change it
# sed -i '/^storage_dir = /{h;s/ = .*/ = "\/config\/\.relica"/};${x;/^$/{s//storage_dir = "\/config\/\.relica"/;H};x}' /opt/relica/config.toml
# sed -i '/^restic_cache_dir = /{h;s/ = .*/ = "\/config\/\.relica"/};${x;/^$/{s//restic_cache_dir = "\/config\/\.relica"/;H};x}' /opt/relica/config.toml