mirror of
https://github.com/YunoHost-Apps/yunorunner_ynh.git
synced 2024-09-03 20:36:13 +02:00
Moar git init/fetch/etc tweaks + permissions
This commit is contained in:
parent
acac439100
commit
34479093fc
1 changed files with 6 additions and 2 deletions
|
@ -80,8 +80,10 @@ ynh_script_progression --message="Setting up source files..."
|
|||
|
||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_exec_as $app git init "$final_path"
|
||||
mkdir "$final_path"
|
||||
chown $app:$app "$final_path"
|
||||
pushd "$final_path"
|
||||
ynh_exec_as $app git init
|
||||
ynh_exec_as $app git remote add origin "$yunorunner_repository"
|
||||
ynh_exec_as $app git fetch --quiet --depth=1 origin "$yunorunner_release"
|
||||
ynh_exec_as $app git reset --quiet --hard FETCH_HEAD
|
||||
|
@ -89,7 +91,9 @@ popd
|
|||
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:$app "$final_path"
|
||||
chown -R $app "$final_path"
|
||||
chown $app:www-data "$final_path"
|
||||
chown -R $app:www-data "$final_path/results"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
|
Loading…
Reference in a new issue