From a2dde479c5daebf98435cb8756dce106afd55d1d Mon Sep 17 00:00:00 2001 From: barremian Date: Wed, 29 May 2024 00:49:15 +0200 Subject: [PATCH] lxc-forgejo: Update 'if' DB_CHOICE conditions to account for whiptail -> select change --- install/forgejo-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/forgejo-install.sh b/install/forgejo-install.sh index 23dbc6d3..e1f7e48a 100644 --- a/install/forgejo-install.sh +++ b/install/forgejo-install.sh @@ -133,15 +133,15 @@ cat </etc/systemd/system/forgejo.service Description=Forgejo After=syslog.target After=network.target -$(if [ "$DB_CHOICE" == "2" ]; then +$(if [[ -n "$DB_CHOICE" && "$DB_CHOICE" == "PostgreSQL" ]]; then echo -e "Wants=postgresql.service" echo -e "After=postgresql.service" fi) -$(if [ "$DB_CHOICE" == "3" ]; then +$(if [[ -n "$DB_CHOICE" && "$DB_CHOICE" == "MySQL" ]]; then echo -e "Wants=mysql.service" echo -e "After=mysql.service" fi) -$(if [ "$DB_CHOICE" == "4" ]; then +$(if [[ -n "$DB_CHOICE" && "$DB_CHOICE" == "MariaDB" ]]; then echo -e "Wants=mariadb.service" echo -e "After=mariadb.service" fi)