mirror of
https://github.com/YunoHost-Apps/gogs_ynh.git
synced 2024-09-03 20:36:23 +02:00
Update install
This commit is contained in:
parent
7a8297a10a
commit
e0194b9496
1 changed files with 5 additions and 5 deletions
|
@ -108,14 +108,14 @@ chmod 750 "$datadir"
|
|||
chmod -R o-rwx "$datadir"
|
||||
chown -R $app:www-data "$datadir"
|
||||
|
||||
REPO_PATH="/home/yunohost.app/$app/repositories"
|
||||
DATA_PATH="/home/yunohost.app/$app/data"
|
||||
REPO_PATH="$datadir/repositories"
|
||||
DATA_PATH="$datadir/data"
|
||||
|
||||
# create needed directories
|
||||
mkdir -p "$final_path/data"
|
||||
mkdir -p "$final_path/custom/conf/auth.d"
|
||||
mkdir -p "/home/yunohost.app/$app/data/avatars"
|
||||
mkdir -p "/home/yunohost.app/$app/data/attachments"
|
||||
mkdir -p "$datadir/data/avatars"
|
||||
mkdir -p "$datadir/data/attachments"
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
|
@ -127,7 +127,7 @@ if [ "$path_url" = "/" ]
|
|||
then
|
||||
ynh_replace_string --match_string="__URL__" --replace_string="$domain" --target_file="$final_path/custom/conf/app.ini"
|
||||
else
|
||||
ynh_replace_string --match_string="__URL__" --replace_string="$domain${path_url%/}" --target_file="$final_path/custom/conf/app.ini"
|
||||
ynh_replace_string --match_string="__URL__" --replace_string="$domain${path_url}" --target_file="$final_path/custom/conf/app.ini"
|
||||
fi
|
||||
|
||||
ynh_replace_string --match_string="__REPOS_PATH__" --replace_string="$REPO_PATH" --target_file="$final_path/custom/conf/app.ini"
|
||||
|
|
Loading…
Reference in a new issue