mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-08-07 00:18:23 +00:00
Add canonical boot configuration synchronization
This commit is contained in:
parent
254a9b9cf3
commit
eda151065c
14 changed files with 424 additions and 50 deletions
|
|
@ -16,12 +16,14 @@ select choice in "Enable" "Disable"; do
|
|||
case "$choice" in
|
||||
Enable)
|
||||
backup_gallery
|
||||
/usr/local/lib/pivilion/config-sync.sh set PIVILION_GENERATOR_ENABLED yes
|
||||
a2ensite 000-upload.conf >/dev/null
|
||||
systemctl reload apache2
|
||||
install -d -m 2775 -o www-data -g www-data "$PIVILION_WEBROOT/gen/upload"
|
||||
echo "Generator enabled at http://<device-address>:81/"
|
||||
break ;;
|
||||
Disable)
|
||||
/usr/local/lib/pivilion/config-sync.sh set PIVILION_GENERATOR_ENABLED no
|
||||
a2dissite 000-upload.conf >/dev/null || true
|
||||
systemctl reload apache2
|
||||
echo "Generator disabled."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue