diff --git a/conf/app.src b/conf/app.src deleted file mode 100644 index f2cf823..0000000 --- a/conf/app.src +++ /dev/null @@ -1,6 +0,0 @@ -SOURCE_URL=https://github.com/YunoHost/yunorunner/archive/42472c5ecac0856833f96d7f2eb9c1c60ce7c68e.zip -SOURCE_SUM=42f6f1bbf4c2d23ee828ce54adefaccc -SOURCE_SUM_PRG=md5sum -SOURCE_FORMAT=zip -SOURCE_IN_SUBDIR=true -SOURCE_FILENAME= diff --git a/scripts/install b/scripts/install index c95b982..d830e5f 100644 --- a/scripts/install +++ b/scripts/install @@ -78,7 +78,7 @@ ynh_print_info "Setting up source files..." ynh_app_setting_set $app final_path $final_path # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source "$final_path" +git clone https://github.com/YunoHost/yunorunner "$final_path" #================================================= # NGINX CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index aa9cf24..932e26f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -82,11 +82,10 @@ ynh_maintenance_mode_ON #================================================= ynh_print_info "Upgrading source files..." -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source "$final_path" -fi +pushd "$final_path" +git fetch +git reset --hard origin/master +popd #================================================= # NGINX CONFIGURATION