mirror of
https://github.com/YunoHost-Apps/distbin_ynh.git
synced 2024-09-03 18:26:10 +02:00
Fix rights
This commit is contained in:
parent
43ecb59ac3
commit
283967936c
2 changed files with 10 additions and 2 deletions
|
@ -115,6 +115,10 @@ mkdir -p "$final_path/distbin-db"
|
||||||
mkdir -p "$final_path/distbin-db/activities"
|
mkdir -p "$final_path/distbin-db/activities"
|
||||||
mkdir -p "$final_path/distbin-db/inbox"
|
mkdir -p "$final_path/distbin-db/inbox"
|
||||||
|
|
||||||
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:$app "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALLING DISTBIN
|
# INSTALLING DISTBIN
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -124,7 +128,7 @@ pushd $final_path
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less sudo -u $app $ynh_node_load_PATH $ynh_npm install --ignore-scripts
|
ynh_exec_warn_less sudo -u $app $ynh_node_load_PATH $ynh_npm install --ignore-scripts
|
||||||
ynh_exec_warn_less sudo -u $app $ynh_node_load_PATH $ynh_npm run build
|
ynh_exec_warn_less sudo -u $app $ynh_node_load_PATH $ynh_npm run build
|
||||||
cp package* dist/
|
sudo -u $app cp -af package* dist/
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd $final_path/dist
|
pushd $final_path/dist
|
||||||
|
|
|
@ -125,6 +125,10 @@ if [ -d "$DIRECTORY" ]; then
|
||||||
mv "$final_path/db" "$final_path/distbin-db"
|
mv "$final_path/db" "$final_path/distbin-db"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:$app "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MAKE UPGRADE
|
# MAKE UPGRADE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -134,7 +138,7 @@ pushd $final_path
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less sudo -u $app $ynh_node_load_PATH $ynh_npm install --ignore-scripts
|
ynh_exec_warn_less sudo -u $app $ynh_node_load_PATH $ynh_npm install --ignore-scripts
|
||||||
ynh_exec_warn_less sudo -u $app $ynh_node_load_PATH $ynh_npm run build
|
ynh_exec_warn_less sudo -u $app $ynh_node_load_PATH $ynh_npm run build
|
||||||
cp package* dist/
|
sudo -u $app cp -af package* dist/
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd $final_path/dist
|
pushd $final_path/dist
|
||||||
|
|
Loading…
Reference in a new issue