Last change
on this file was 988, checked in by Silvan Scherrer, 9 years ago |
Samba Server: update vendor to version 4.4.3
|
File size:
464 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # smbdeleteshare
|
---|
4 | #
|
---|
5 | # Copyright (C) 2015 Christof Schmitt
|
---|
6 | #
|
---|
7 | # Example script that can be used with the 'delete share command'
|
---|
8 | # config option. This is mainly intended for use in the Samba selftest
|
---|
9 | # suite, please review and adapt it before using elsewhere.
|
---|
10 | #
|
---|
11 |
|
---|
12 | CONF="$1"
|
---|
13 | SHARENAME="$2"
|
---|
14 |
|
---|
15 | NETCONF="$BINDIR/net --configfile=$CONF conf"
|
---|
16 | $NETCONF delshare "$SHARENAME"
|
---|
17 | RC=$?
|
---|
18 | if [[ $RC -ne 0 ]]; then
|
---|
19 | echo Failure during delshare command: rc=$RC
|
---|
20 | exit $RC
|
---|
21 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.