diff --git a/man/freedombone-template.1.gz b/man/freedombone-template.1.gz index 511a41b7..6413e39b 100644 Binary files a/man/freedombone-template.1.gz and b/man/freedombone-template.1.gz differ diff --git a/src/freedombone-template b/src/freedombone-template index d3673196..4fb894b3 100755 --- a/src/freedombone-template +++ b/src/freedombone-template @@ -48,6 +48,7 @@ your_email='' SHOW_ON_ABOUT=1 database_type='' debian_packages= +snap_packages= function show_help { echo '' @@ -69,6 +70,7 @@ function show_help { echo $' -o --onion [yes|no] Is this app only available on an onion address?' echo $' -p --php [yes|no] Is this a PHP app?' echo $' --packages [list of deb package names] Debian packages to be installed' + echo $' --snaps [list of snap package names] Snap packages to be installed' echo $' -s --daemon [yes|no] Add a daemon' echo $' -d --database [mariadb|postgresql|mongodb] Type of database' echo $' -w --web [yes|no] Whether there is a web user interface (default is yes)' @@ -158,6 +160,10 @@ do shift debian_packages="$1" ;; + --snaps|--snap) + shift + snap_packages="$1" + ;; *) # unknown option ;; @@ -716,6 +722,10 @@ if [ $app_webui ]; then echo '' echo " remove_ddns_domain \"\$${app_name_upper}_DOMAIN_NAME\"" fi +if [ "$snap_packages" ]; then + echo '' + echo " snap remove ${snap_packages}" +fi echo '}' echo '' echo "function install_${app_name} {" @@ -723,6 +733,11 @@ if [ "$debian_packages" ]; then echo " apt-get -qy install ${debian_packages}" echo '' fi +if [ "$snap_packages" ]; then + echo ' apt-get -qy install snapd' + echo " snap install ${snap_packages}" + echo '' +fi if [[ "$database_type" == "mariadb" || "$database_type" == "mysql" ]]; then echo ' install_mariadb' echo ''