mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
Update install
This commit is contained in:
parent
ee38dd7fc2
commit
be6e7faa3c
1 changed files with 0 additions and 38 deletions
|
@ -27,44 +27,6 @@ ynh_setup_source --dest_dir=$install_dir
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# INSTALL ETHERPAD
|
|
||||||
#=================================================
|
|
||||||
#ynh_script_progression --message="Installing $app..." --weight=60
|
|
||||||
|
|
||||||
#pushd $install_dir
|
|
||||||
# ynh_use_nodejs
|
|
||||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH bin/installDeps.sh
|
|
||||||
#popd
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# MODIFY A CONFIG FILE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Configuring $app..." --weight=6
|
|
||||||
|
|
||||||
ynh_add_config --template="settings.json" --destination="$install_dir/settings.json"
|
|
||||||
chmod 400 "$install_dir/settings.json"
|
|
||||||
chown $app:$app "$install_dir/settings.json"
|
|
||||||
|
|
||||||
if [ "$export" = "abiword" ]
|
|
||||||
then
|
|
||||||
# Get AbiWord binary path
|
|
||||||
abiword_path=`which abiword`
|
|
||||||
# Set the path of AbiWord into Etherpad config
|
|
||||||
ynh_replace_string --match_string="\"abiword\" : null" --replace_string="\"abiword\" : \"$abiword_path\"" --target_file="$install_dir/settings.json"
|
|
||||||
elif [ "$export" = "libreoffice" ]
|
|
||||||
then
|
|
||||||
# Get soffice binary path
|
|
||||||
soffice_path=`which soffice`
|
|
||||||
# Set the path of soffice into Etherpad config
|
|
||||||
ynh_replace_string --match_string="\"soffice\" : null" --replace_string="\"soffice\" : \"$soffice_path\"" --target_file="$install_dir/settings.json"
|
|
||||||
fi
|
|
||||||
ynh_store_file_checksum --file="$install_dir/settings.json"
|
|
||||||
|
|
||||||
ynh_add_config --template="credentials.json" --destination="$install_dir/credentials.json"
|
|
||||||
chmod 400 "$install_dir/credentials.json"
|
|
||||||
chown $app:$app "$install_dir/credentials.json"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue