summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rwxr-xr-xserver/bin/setsmbpass3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/bin/setsmbpass b/server/bin/setsmbpass
index 4920d399..44449fbb 100755
--- a/server/bin/setsmbpass
+++ b/server/bin/setsmbpass
@@ -104,6 +104,9 @@ for OGLIVE in $LIST; do
fi
done
if [[ $CHANGES != 0 ]]; then
+ jq ".samba.user = \"$SAMBAUSER\" | .samba.pass = \"$SAMBAPASS\"" \
+ "$OPENGNSYS"/client/ogClient/cfg/ogclient.json > /tmp/ogclient.json
+ mv /tmp/ogclient.json "$OPENGNSYS"/client/ogClient/cfg/ogclient.json
# Ticket 565, preparar acceso Rsync servidor.
[ -e /etc/rsyncd.secrets ] && sed -i -n -e "/^$SAMBAUSER:/!p" -e "$ a$SAMBAUSER:$SAMBAPASS" /etc/rsyncd.secrets || echo "$SAMBAUSER:$SAMBAPASS" > /etc/rsyncd.secrets
chown root.root /etc/rsyncd.secrets