mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
Update install
This commit is contained in:
parent
c5eade9bc8
commit
e5cc23c9b3
1 changed files with 12 additions and 8 deletions
|
@ -83,13 +83,6 @@ ynh_app_setting_set $app final_path $final_path
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source "$final_path"
|
||||
|
||||
#=================================================
|
||||
# Files owned by root, www-data can just read
|
||||
#=================================================
|
||||
|
||||
sudo chown $app:$app $final_path -R
|
||||
sudo chmod 755 $final_path -R
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
@ -124,8 +117,19 @@ sudo chown admin -R $install_log
|
|||
|
||||
script_dir="$PWD"
|
||||
pushd "$final_path"
|
||||
chown -R $app:$app $final_path
|
||||
npm install
|
||||
|
||||
#=================================================
|
||||
# Files owned by root, www-data can just read
|
||||
#=================================================
|
||||
|
||||
sudo chown $app:$app $final_path -R
|
||||
sudo chmod 755 $final_path -R
|
||||
|
||||
#=================================================
|
||||
# Bower
|
||||
#=================================================
|
||||
|
||||
npm install -g bower
|
||||
exec_login_as $app cd $final_path && env PATH=$PATH bower install
|
||||
popd
|
||||
|
|
Loading…
Add table
Reference in a new issue