1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00
This commit is contained in:
ericgaspar 2021-05-12 08:26:49 +02:00
parent 9fbd26504e
commit 6a6634aaa5
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 13 additions and 10 deletions

View file

@ -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": {

View file

@ -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

View file

@ -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
#================================================= #=================================================

View file

@ -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