mirror of
https://github.com/YunoHost-Apps/pelican_ynh.git
synced 2024-09-03 19:46:35 +02:00
Update install
This commit is contained in:
parent
e44f97dd22
commit
74259706c1
1 changed files with 4 additions and 5 deletions
|
@ -1,12 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Source app helpers and functions
|
|
||||||
source _common.sh
|
|
||||||
source /usr/share/yunohost/helpers
|
|
||||||
|
|
||||||
# Exit on command errors and treat unset variables as an error
|
# Exit on command errors and treat unset variables as an error
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
# Source app helpers and functions
|
||||||
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
|
@ -20,7 +19,7 @@ location=${path:-/}
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl $domain$path -a $app \
|
sudo yunohost app checkurl $domain$path -a $app \
|
||||||
|| (echo "Path not available: $domain$path" && exit 1)
|
|| ynh_die "The path ${domain}${path} is not available for app installation."
|
||||||
|
|
||||||
# Document root
|
# Document root
|
||||||
document_root=/var/www/$app
|
document_root=/var/www/$app
|
||||||
|
|
Loading…
Add table
Reference in a new issue