1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/archivebox_ynh.git synced 2024-09-03 18:15:54 +02:00

Specify node binary for ArchiveBox.conf

This commit is contained in:
notplants 2021-12-04 16:22:06 +01:00
parent faf2d9da13
commit 4442a06abb
2 changed files with 12 additions and 0 deletions

2
conf/ArchiveBox.conf Normal file
View file

@ -0,0 +1,2 @@
[DEPENDENCY_CONFIG]
NODE_BINARY=__YNH_NODE__

View file

@ -141,6 +141,9 @@ cp ../conf/package.json "$final_path/package.json"
cp ../conf/package-lock.json "$final_path/package-lock.json"
cd $final_path; ynh_npm ci
ynh_node_path=$ynh_node
ynh_script_progression --message="ynh_node_path: $ynh_node_path" --weight=1
#=================================================
# CREATE DATA DIRECTORY
#=================================================
@ -160,6 +163,13 @@ chown -R $app:www-data "$datadir"
# CREATE ARCHIVEBOX CONFIG
#=================================================
# copy configuration file
ynh_add_config --template="../conf/ArchiveBox.conf" --destination="$datadir/ArchiveBox.conf"
# permissions
chmod 750 "$datadir"
chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir"
#=================================================
# INITIALIZE ARCHIVEBOX