mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
default argument for a optional argument
This commit is contained in:
parent
95dd430334
commit
49ec93a9c5
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ ynh_psql_execute_file_as_root() {
|
||||||
# | arg: user - the user to grant privilegies
|
# | arg: user - the user to grant privilegies
|
||||||
ynh_psql_create_db() {
|
ynh_psql_create_db() {
|
||||||
local db=$1
|
local db=$1
|
||||||
local user=$2
|
local user=${2:-}
|
||||||
|
|
||||||
local sql="CREATE DATABASE ${db};"
|
local sql="CREATE DATABASE ${db};"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue