mirror of
https://github.com/YunoHost-Apps/gogs_ynh.git
synced 2024-09-03 20:36:23 +02:00
Use default value to to prevent bad behavior if not set
This commit is contained in:
parent
50e64140e4
commit
5f29a8f6a1
5 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
set -eu
|
||||
|
||||
# Set app specific variables
|
||||
app="gogs"
|
||||
app=${APPNAME:-gogs}
|
||||
dbname=$app
|
||||
dbuser=$app
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ is_public=$4
|
|||
source ./_common.sh
|
||||
|
||||
# Set app specific variables
|
||||
app=$APPNAME
|
||||
app=${APPNAME:-gogs}
|
||||
dbname=$app
|
||||
dbuser=$app
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
source ./_common.sh
|
||||
|
||||
# Set app specific variables
|
||||
app=$APPNAME
|
||||
app=${APPNAME:-gogs}
|
||||
dbname=$app
|
||||
dbuser=$app
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
set -eu
|
||||
|
||||
# Set app specific variables
|
||||
app="gogs"
|
||||
app=${APPNAME:-gogs}
|
||||
dbname=$app
|
||||
dbuser=$app
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ set -eu
|
|||
source ./_common.sh
|
||||
|
||||
# Set app specific variables
|
||||
app=$APPNAME
|
||||
app=${APPNAME:-gogs}
|
||||
dbname=$app
|
||||
dbuser=$app
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue