mirror of
https://github.com/YunoHost-Apps/libreto_ynh.git
synced 2024-09-03 19:36:14 +02:00
fix
This commit is contained in:
parent
596dbd4d3e
commit
ca406247df
2 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,8 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
|||
ynh_script_progression --message="Setting up source files..." --weight=4
|
||||
|
||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
|
||||
git config --system --add safe.directory $final_path
|
||||
# Note: We use git instead of ynh_setup_source, cause this repo use submodules
|
||||
git clone https://github.com/zamentur/libreto.git "$final_path" --quiet
|
||||
|
||||
|
|
|
@ -75,6 +75,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||
|
||||
git config --system --add safe.directory $final_path
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
pushd "$final_path"
|
||||
git checkout master
|
||||
|
|
Loading…
Reference in a new issue