Fix devstack smb configuration outside ubuntu
Some distros ship with /etc/samba/smb.conf already in place, without /usr/share/samba/smb.conf. Only copy /etc/samba/smb.conf from /usr/share/samba/smb.conf if /usr/share/samba/smb.conf exists. Change-Id: I22aeed317a94774ff03c1aadf6a65f5edb490837 Fixes-bug: 1645860
This commit is contained in:
parent
845ba22619
commit
6a211b7cf5
@ -724,7 +724,9 @@ function configure_samba {
|
||||
sudo service $samba_daemon_name restart || echo "Couldn't restart '$samba_daemon_name' service"
|
||||
fi
|
||||
|
||||
sudo cp /usr/share/samba/smb.conf $SMB_CONF
|
||||
if [[ -e /usr/share/samba/smb.conf ]]; then
|
||||
sudo cp /usr/share/samba/smb.conf $SMB_CONF
|
||||
fi
|
||||
sudo chown $STACK_USER -R /etc/samba
|
||||
iniset $SMB_CONF global include registry
|
||||
iniset $SMB_CONF global security user
|
||||
|
Loading…
x
Reference in New Issue
Block a user