mirror of
https://github.com/YunoHost-Apps/samba_ynh.git
synced 2024-09-03 20:16:27 +02:00
cleaning
This commit is contained in:
parent
298c00f4c3
commit
cbebf691a2
4 changed files with 1 additions and 5 deletions
|
@ -5,7 +5,7 @@ name = "Samba"
|
||||||
description.en = "Share directories on your private network thanks to SMB protocol"
|
description.en = "Share directories on your private network thanks to SMB protocol"
|
||||||
description.fr = "Partager des dossiers sur un réseau privé via le protocole SMB"
|
description.fr = "Partager des dossiers sur un réseau privé via le protocole SMB"
|
||||||
|
|
||||||
version = "4.13.13~ynh2"
|
version = "4.13.13~yn3"
|
||||||
|
|
||||||
maintainers = ["Galette"]
|
maintainers = ["Galette"]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
|
|
||||||
source ../settings/scripts/_common.sh
|
source ../settings/scripts/_common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ ynh_app_setting_set --key=unbrowseable --value=''
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Creating a data directory..."
|
ynh_script_progression "Creating a data directory..."
|
||||||
|
|
||||||
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 750 "$data_dir/share"
|
|
||||||
chmod -R o-rwx "$data_dir/share"
|
chmod -R o-rwx "$data_dir/share"
|
||||||
chown -R root:root "$data_dir/share"
|
chown -R root:root "$data_dir/share"
|
||||||
setfacl -R -m g:samba.share:rwx,d:g:samba.share:rwx $data_dir/share
|
setfacl -R -m g:samba.share:rwx,d:g:samba.share:rwx $data_dir/share
|
||||||
|
@ -54,7 +53,6 @@ yunohost service add smbd --description="Samba service" --log="/var/log/smbd/smb
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Starting $app's systemd service..."
|
ynh_script_progression "Starting $app's systemd service..."
|
||||||
|
|
||||||
# Start a systemd service
|
|
||||||
ynh_systemctl --service=smbd --action="start"
|
ynh_systemctl --service=smbd --action="start"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -9,7 +9,6 @@ source /usr/share/yunohost/helpers
|
||||||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
|
||||||
if ynh_hide_warnings yunohost service status $app >/dev/null
|
if ynh_hide_warnings yunohost service status $app >/dev/null
|
||||||
then
|
then
|
||||||
ynh_script_progression "Removing $app service integration..."
|
ynh_script_progression "Removing $app service integration..."
|
||||||
|
|
Loading…
Reference in a new issue