1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/chitchatter_ynh.git synced 2024-09-03 18:15:59 +02:00

Update install

This commit is contained in:
Éric Gaspar 2023-03-12 11:37:36 +01:00
parent 91e2e0b82c
commit 8b8f42076a

View file

@ -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 ynh_script_progression --message="Setting up source files..." --weight=4
# Download, check integrity, uncompress and patch the source from GitHub mkdir -p "$install_dir"
ynh_setup_source --dest_dir="$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" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"