Skip to content

Commit

Permalink
samba: restart after configuration change
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed May 3, 2018
1 parent ff22311 commit 73bc22a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion etc/ncp-config.d/fail2ban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ configure()
[ -d "$BASEDIR" ] || { echo -e "directory $BASEDIR not found"; return 1; }

sudo -u www-data touch "$NCLOG" || { echo -e "ERROR: user www-data does not have write permissions on $NCLOG"; return 1; }
chown -R www-data "$BASEDIR"

cd /var/www/nextcloud
sudo -u www-data php occ config:system:set loglevel --value=2
Expand Down
4 changes: 2 additions & 2 deletions etc/ncp-config.d/samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ EOF

update-rc.d smbd defaults
update-rc.d smbd enable
service smbd start
service smbd restart

update-rc.d nmbd enable
service nmbd start
service nmbd restart

echo "SMB enabled"
}
Expand Down

0 comments on commit 73bc22a

Please sign in to comment.