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:
parent
1f6d972e5e
commit
bcc5327598
2 changed files with 16 additions and 7 deletions
|
@ -36,10 +36,6 @@ ram.runtime = "2G"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
|
|
||||||
[resources.sources.main]
|
|
||||||
url = "https://iceshrimp.dev/iceshrimp/iceshrimp/archive/v2023.11.4.tar.gz"
|
|
||||||
sha256 = "e5918afc997f7b3513043ade77f0e3f5a222a724afd6742eed0b9128627a6712"
|
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
|
@ -31,11 +31,24 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setting up source files..." --weight=3
|
ynh_script_progression --message="Setting up source files..." --weight=3
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
mkdir -p "$install_dir"
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
|
||||||
|
|
||||||
chown -R $app:www-data "$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
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue