1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00

Adding Node and typescript

This commit is contained in:
Yalh 2019-01-28 20:21:17 +01:00
parent f9a54235f5
commit 6b69c6d6c7
4 changed files with 16 additions and 0 deletions

View file

@ -168,6 +168,10 @@ ynh_system_user_create $app
# ...
#=================================================
ynh_install_nodejs
ynh_use_nodejs
npm install -g typescript
#=================================================
# SETUP SYSTEMD
#=================================================

View file

@ -99,6 +99,10 @@ fi
# REMOVE THE CRON FILE
#=================================================
ynh_use_nodejs
npm uninstall -g typescript
ynh_remove_nodejs
# Remove a cron file
#ynh_secure_remove "/etc/cron.d/$app"

View file

@ -91,6 +91,10 @@ chown -R root: $final_path
# Define and install dependencies
#ynh_install_app_dependencies deb1 deb2
ynh_install_nodejs
ynh_use_nodejs
npm install -g typescript
#=================================================
# RESTORE SYSTEMD
#=================================================

View file

@ -110,6 +110,10 @@ ynh_system_user_create $app
# ...
#=================================================
ynh_install_nodejs
ynh_use_nodejs
npm install -g typescript
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.
#ynh_backup_if_checksum_is_different "$final_path/CONFIG_FILE"