mirror of
https://github.com/YunoHost-Apps/framagames_ynh.git
synced 2024-09-03 18:36:28 +02:00
Fix some more things at install time
This commit is contained in:
parent
6d53939019
commit
72b5bc82f2
1 changed files with 5 additions and 2 deletions
|
@ -15,6 +15,10 @@ _configure_framagames() {
|
||||||
--match_string="canonical: .*" \
|
--match_string="canonical: .*" \
|
||||||
--replace_string="canonical: https://$domain$path"
|
--replace_string="canonical: https://$domain$path"
|
||||||
|
|
||||||
|
ynh_replace_string --target_file="$install_dir/sources/src/data/main.yml" \
|
||||||
|
--match_string="framanav: true" \
|
||||||
|
--replace_string="framanav: false"
|
||||||
|
|
||||||
ynh_replace_string --target_file="$install_dir/sources/config/env.js" \
|
ynh_replace_string --target_file="$install_dir/sources/config/env.js" \
|
||||||
--match_string=": '/'," \
|
--match_string=": '/'," \
|
||||||
--replace_string=": '$path/',"
|
--replace_string=": '$path/',"
|
||||||
|
@ -29,8 +33,7 @@ _build_install_framagames() {
|
||||||
|
|
||||||
mv -f "$install_dir/sources/dist" "$install_dir/www"
|
mv -f "$install_dir/sources/dist" "$install_dir/www"
|
||||||
mv -f "$install_dir/sources/games/"* "$install_dir/www"
|
mv -f "$install_dir/sources/games/"* "$install_dir/www"
|
||||||
# cp "$install_dir/www/fr/index.html" "$install_dir/www/index.html"
|
mv -f "$install_dir/www/framagames/"* "$install_dir/www"
|
||||||
# cd public && for f in $(find -type l);do cp --remove-destination $(readlink -f $f) $f;done;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue