[Users] Help wanted: shell scripting
Guy CARRÉ
guycarre at free.fr
Mon Oct 31 22:16:38 CET 2016
Here a code sample to check if mailboxd is running on the server.
You can add it near the beginning of the script under check root user
# check if a service mailboxd is running on this server
MAILBOXD="$(su - zimbra << 'EOF'
zmcontrol status | grep mailboxd || true
EOF
)"
if [ ! -z "${MAILBOXD}" ] ;
then echo "mailboxd is running"
else echo "mailboxd is not present on this server"
exit 1
fi
----- Mail original -----
> De: "Guy CARRÉ" <guycarre at free.fr>
> À: "Barry de Graaff" <info at barrydegraaff.tk>
> Cc: devel at lists.zetalliance.org, users at lists.zetalliance.org
> Envoyé: Lundi 31 Octobre 2016 21:00:43
> Objet: Re: [Users] Help wanted: shell scripting
>
> Hello Barry,
>
> I can not promise but I will try to do something. And first read
> your script and add some little
> modifications.
> This fisrt exercise allow me to understand what your script is doing
> before going further.
>
> I think I am going to add some simple checks too, like :
> - is the script running on server with mailboxd process
> - which version of the Zimlet is installed and if it is installed too
> ;)
>
>
> Regards,
>
> ----- Mail original -----
> > De: "Barry de Graaff" <info at barrydegraaff.tk>
> > À: users at lists.zetalliance.org, devel at lists.zetalliance.org
> > Envoyé: Lundi 31 Octobre 2016 15:11:39
> > Objet: [Users] Help wanted: shell scripting
> >
> > Hello All,
> >
> > Anyone here who has knows shell scripting and willing to put some
> > time
> > in the community? Let me know!
> >
> > I am looking for someone who can add an upgrade feature to the
> > WebDAV
> > Client installer, aka an upgrade feature. Right not the installer
> > only fresh installs.
> >
> > Your code needs to parse config_template.xml and config.properties,
> > read the current values, compare any changes, and put them pack
> > after
> > upgrading:
> > https://github.com/Zimbra-Community/owncloud-zimlet/blob/soapServiceBarry/webdav-client-installer.sh
> >
> >
> > Also, your work needs to be re-usable to it can be used for other
> > Zimlet,
> > there is no $$$ available for this, its a voluntary effort.
> >
> > If you are interested, let me know!
> >
> > Kind regards,
> >
> > Barry de Graaff
> > Zeta Alliance Founder
> > www.zetalliance.org
> >
> > Skype: barrydegraaff.tk
> > Fingerprint: 97f4694a1d9aedad012533db725ddd156d36a2d0
> >
> >
> >
>
> --
> ___________________________________
> / \
> /-------------------------------------\
> | Guy CARRÉ |
> | ************* |
> | PostMaster - WikiMaster - SysAdmin |
> | |
> | "Free Your Mind. Think Open Source" |
> | april.org |
> | |
> |_____________________________________|
>
--
___________________________________
/ \
/-------------------------------------\
| Guy CARRÉ |
| ************* |
| PostMaster - WikiMaster - SysAdmin |
| |
| "Free Your Mind. Think Open Source" |
| april.org |
| |
|_____________________________________|
More information about the Users
mailing list