1
0
Fork 0
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:
ericgaspar 2021-11-07 15:44:01 +01:00
parent 7a8297a10a
commit e0194b9496
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -108,14 +108,14 @@ chmod 750 "$datadir"
chmod -R o-rwx "$datadir" chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir" chown -R $app:www-data "$datadir"
REPO_PATH="/home/yunohost.app/$app/repositories" REPO_PATH="$datadir/repositories"
DATA_PATH="/home/yunohost.app/$app/data" DATA_PATH="$datadir/data"
# create needed directories # create needed directories
mkdir -p "$final_path/data" mkdir -p "$final_path/data"
mkdir -p "$final_path/custom/conf/auth.d" mkdir -p "$final_path/custom/conf/auth.d"
mkdir -p "/home/yunohost.app/$app/data/avatars" mkdir -p "$datadir/data/avatars"
mkdir -p "/home/yunohost.app/$app/data/attachments" mkdir -p "$datadir/data/attachments"
#================================================= #=================================================
# MODIFY A CONFIG FILE # MODIFY A CONFIG FILE
@ -127,7 +127,7 @@ if [ "$path_url" = "/" ]
then then
ynh_replace_string --match_string="__URL__" --replace_string="$domain" --target_file="$final_path/custom/conf/app.ini" ynh_replace_string --match_string="__URL__" --replace_string="$domain" --target_file="$final_path/custom/conf/app.ini"
else 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 fi
ynh_replace_string --match_string="__REPOS_PATH__" --replace_string="$REPO_PATH" --target_file="$final_path/custom/conf/app.ini" ynh_replace_string --match_string="__REPOS_PATH__" --replace_string="$REPO_PATH" --target_file="$final_path/custom/conf/app.ini"