Merge "Fix devstack smb configuration outside ubuntu" into stable/newton

This commit is contained in:
Jenkins 2017-01-04 22:13:53 +00:00 committed by Gerrit Code Review
commit 8e1db56a43
1 changed files with 3 additions and 1 deletions

View File

@ -715,7 +715,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