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:
parent
faf2d9da13
commit
4442a06abb
2 changed files with 12 additions and 0 deletions
2
conf/ArchiveBox.conf
Normal file
2
conf/ArchiveBox.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[DEPENDENCY_CONFIG]
|
||||||
|
NODE_BINARY=__YNH_NODE__
|
|
@ -141,6 +141,9 @@ cp ../conf/package.json "$final_path/package.json"
|
||||||
cp ../conf/package-lock.json "$final_path/package-lock.json"
|
cp ../conf/package-lock.json "$final_path/package-lock.json"
|
||||||
cd $final_path; ynh_npm ci
|
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
|
# CREATE DATA DIRECTORY
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -160,6 +163,13 @@ chown -R $app:www-data "$datadir"
|
||||||
# CREATE ARCHIVEBOX CONFIG
|
# 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
|
# INITIALIZE ARCHIVEBOX
|
||||||
|
|
Loading…
Reference in a new issue