diff --git a/scripts/install b/scripts/install index 936b8f0..7163eeb 100755 --- a/scripts/install +++ b/scripts/install @@ -21,10 +21,18 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version #================================================= ynh_script_progression --message="Setting up source files..." --weight=4 -# Download, check integrity, uncompress and patch the source from GitHub -ynh_setup_source --dest_dir="$install_dir" +mkdir -p "$install_dir" +chown -R $app:www-data "$install_dir" + +git config --system --add safe.directory $install_dir + +# Download, check integrity, uncompress and patch the source from GitHub +git clone https://github.com/jeremyckahn/chitchatter "$install_dir" --quiet + +pushd "$install_dir" + git reset --hard --quiet $version_commit +popd -chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir"