1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/iceshrimp_ynh.git synced 2024-09-03 19:15:54 +02:00

Add git clone

This commit is contained in:
oufmilo 2023-12-21 22:58:46 +01:00
parent 1f6d972e5e
commit bcc5327598
2 changed files with 16 additions and 7 deletions

View file

@ -36,10 +36,6 @@ ram.runtime = "2G"
[resources]
[resources.sources.main]
url = "https://iceshrimp.dev/iceshrimp/iceshrimp/archive/v2023.11.4.tar.gz"
sha256 = "e5918afc997f7b3513043ade77f0e3f5a222a724afd6742eed0b9128627a6712"
[resources.system_user]
[resources.install_dir]

View file

@ -31,11 +31,24 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=3
# Download, check integrity, uncompress and patch the source from app.src
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
git lfs install
# Download, check integrity, uncompress and patch the source from GitHub
git clone https://iceshrimp.dev/iceshrimp/iceshrimp.git "$install_dir" --quiet
pushd "$install_dir"
git reset --hard --quiet $version_commit
make
popd
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# NGINX CONFIGURATION
#=================================================