mirror of
https://github.com/YunoHost-Apps/elabftw_ynh.git
synced 2024-09-03 18:26:23 +02:00
Update install
This commit is contained in:
parent
b7df2ad1cf
commit
d22074b2ab
1 changed files with 6 additions and 4 deletions
|
@ -131,10 +131,11 @@ ynh_install_composer --install_args="--no-dev"
|
||||||
ynh_script_progression --message="Installing $app..." --weight=30
|
ynh_script_progression --message="Installing $app..." --weight=30
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
#ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH npm install --save https://github.com/foliojs/brotli.js/tarball/master
|
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --pure-lockfile --prod
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --pure-lockfile --prod
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run buildall
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run buildall
|
||||||
|
|
||||||
ynh_composer_exec --commands="install --prefer-dist --no-cache --no-progress --no-dev -a"
|
ynh_composer_exec --commands="install --prefer-dist --no-cache --no-progress --no-dev -a"
|
||||||
|
|
||||||
ynh_secure_remove node_modules
|
ynh_secure_remove node_modules
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean
|
||||||
|
|
||||||
|
@ -156,9 +157,10 @@ popd
|
||||||
ynh_script_progression --message="Securing files and directories..." --weight=1
|
ynh_script_progression --message="Securing files and directories..." --weight=1
|
||||||
|
|
||||||
mkdir -p $final_path/{cache,uploads}
|
mkdir -p $final_path/{cache,uploads}
|
||||||
chown $app:www-data $final_path/{cache,uploads}
|
|
||||||
chmod 750 -R "$final_path"
|
chmod 755 "$final_path"
|
||||||
chmod 700 $final_path/{cache,uploads}
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Reference in a new issue