mirror of https://github.com/tteck/Proxmox.git
lxc-forgejo: Update 'if' DB_CHOICE conditions to account for whiptail -> select change
This commit is contained in:
parent
2f1b9e27b8
commit
a2dde479c5
|
@ -133,15 +133,15 @@ cat <<EOF >/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)
|
||||
|
|
Loading…
Reference in New Issue