mirror of
https://github.com/YunoHost-Apps/haste_ynh.git
synced 2024-09-03 20:36:28 +02:00
Fix
This commit is contained in:
parent
9fbd26504e
commit
6a6634aaa5
4 changed files with 13 additions and 10 deletions
|
@ -6,7 +6,7 @@
|
||||||
"en": "Open-source pastebin allowing to upload texts",
|
"en": "Open-source pastebin allowing to upload texts",
|
||||||
"fr": "Pastebin open-source permettant de mettre en ligne du texte"
|
"fr": "Pastebin open-source permettant de mettre en ligne du texte"
|
||||||
},
|
},
|
||||||
"version": "0.1.0~ynh6",
|
"version": "0.1.0~ynh7",
|
||||||
"url": "https://github.com/seejohnrun/haste-server",
|
"url": "https://github.com/seejohnrun/haste-server",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -146,8 +146,9 @@ cp ../conf/haste.sh /usr/bin/$app
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
chown -R $app: "$final_path/static"
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
chown -R $app: $data_path
|
chown -R $app: $data_path
|
||||||
chmod +x /usr/bin/$app
|
chmod +x /usr/bin/$app
|
||||||
|
|
||||||
|
|
|
@ -84,9 +84,10 @@ ynh_restore_file --origin_path="/usr/bin/$app"
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
chown -R $app: "$final_path/static"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app: "/home/yunohost.app/$app"
|
chown -R $app:www-data "$final_path"
|
||||||
|
chown -R $app: $data_path
|
||||||
chmod +x /usr/bin/$app
|
chmod +x /usr/bin/$app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -157,8 +157,9 @@ cp ../conf/haste.sh /usr/bin/$app
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
chown -R $app: "$final_path/static"
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
chown -R $app: $data_path
|
chown -R $app: $data_path
|
||||||
chmod +x /usr/bin/$app
|
chmod +x /usr/bin/$app
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue