1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/misskey_ynh.git synced 2024-09-03 19:46:03 +02:00
This commit is contained in:
ericgaspar 2021-09-26 20:52:46 +02:00
parent d30042b577
commit 74613c402d
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 4 additions and 9 deletions

View file

@ -7,7 +7,7 @@
MEMORY_NEEDED="2560"
# dependencies used by the app
pkg_dependencies="build-essential ffmpeg redis-server redis-tools postgresql postgresql-contrib"
pkg_dependencies="build-essential ffmpeg postgresql postgresql-contrib"
NODEJS_VERSION="12"

View file

@ -13,10 +13,6 @@ source /usr/share/yunohost/helpers
# MANAGE SCRIPT FAILURE
#=================================================
ynh_clean_setup () {
### Remove this function if there's nothing to clean before calling the remove script.
true
}
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
@ -69,7 +65,6 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
#curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
#=================================================
@ -134,9 +129,9 @@ chown $app:$app "$final_path/.config/default.yml"
ynh_script_progression --message="Installing Misskey..." --weight=15
pushd "$final_path"
ynh_exec_warn_less yarn add ts-node webpack
ynh_exec_warn_less NODE_ENV=production yarn build
ynh_exec_warn_less yarn run init
ynh_exec_as $app env $ynh_node_load_PATH yarn add ts-node webpack
ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production yarn build
ynh_exec_as $app env $ynh_node_load_PATH yarn run init
popd
#=================================================