mirror of
https://github.com/YunoHost-Apps/haste_ynh.git
synced 2024-09-03 20:36:28 +02:00
Update install
This commit is contained in:
parent
56cd8d5a2d
commit
92cabd9b1c
1 changed files with 10 additions and 1 deletions
|
@ -121,6 +121,7 @@ script_dir="$PWD"
|
|||
pushd "$final_path"
|
||||
chown -R $app: $final_path
|
||||
npm install
|
||||
popd
|
||||
DATA_PATH="/home/yunohost.app/"$app
|
||||
mkdir -p $DATA_PATH
|
||||
chown -R "$app":"$app" $final_path $DATA_PATH
|
||||
|
@ -153,6 +154,14 @@ then
|
|||
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# Add HASTE AS A BINARY FILE
|
||||
#=================================================
|
||||
|
||||
ynh_replace_string "YNH_HASTE_URL" "${DOMAIN}${path%/}" "../conf/haste.sh"
|
||||
sudo cp ../conf/haste.sh /usr/bin/"$app"
|
||||
sudo chmod +x /usr/bin/"$app"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue