mirror of
https://github.com/YunoHost-Apps/framagames_ynh.git
synced 2024-09-03 18:36:28 +02:00
Try to fix install domain/path
This commit is contained in:
parent
ec94cd403d
commit
529a64c6d7
1 changed files with 13 additions and 0 deletions
|
@ -25,6 +25,19 @@ ynh_setup_source --dest_dir="$install_dir/sources"
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R "$app:www-data" "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# CONFIGURE APP
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring $app..."
|
||||
|
||||
ynh_replace_string --target_file="$install_dir/sources/src/data/main.yml" \
|
||||
--match_string="canonical: .*" \
|
||||
--replace_string="canonical: https://$domain$path"
|
||||
|
||||
ynh_replace_string --target_file="$install_dir/sources/config/env.js" \
|
||||
--match_string=": '/'," \
|
||||
--replace_string=": '$path/',"
|
||||
|
||||
#=================================================
|
||||
# BUILD APP
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue