freswa / dovecot-xaps-daemon

MIT License
51 stars 11 forks source link

All config parameter can be updated using command line #6

Closed gitze closed 3 years ago

gitze commented 3 years ago

Now as GO implementation:

The configuration file can also be updated via the command line, e.g.

xapsd -setAppleID=your@apple.com -setApplePassword=yourAppleIDPassword

The hash value for the AppleID password will be generated automatically and saved in the config file.

All possible command line options:

xapsd -configPath=/etc/xapsd -configName=xapsd \
    -setDatabaseFile=/var/lib/xapsd/database.json -setSocketPath=/var/run/dovecot/xapsd.sock \
    -setLogLevel=warn -setCheckInterval=20 -setDelay=30 \
    -setAppleID=your@appleid.com -setApplePassword=yourAppleIDPassword
freswa commented 3 years ago

Why would we want to update the config params by cmdline?

gitze commented 3 years ago

Mainly the AppleID and the password (hash) should be set via Command line, this allows a script based installation. The other parameters are optional and I can delete them from the code without problems.

gitze commented 3 years ago

I'm using this daemon on a FreeBSD system, with a different location of the config and the database file. Therefore configuring this param (databaseFile) on a command line base would make my life easier.

freultwah commented 3 years ago

I'm using this daemon on a FreeBSD system

Have you checked if you find my relevant FreeBSD ports useful at all?

gitze commented 3 years ago

Have you checked if you find my relevant FreeBSD ports useful at all?

No, not yet. Could you point me to the relevant port? I can't find anything in freebsd.org/ports with a search phrase xaps

freultwah commented 3 years ago

Have you checked if you find my relevant FreeBSD ports useful at all?

No, not yet. Could you point me to the relevant port?

It's on my GitHub account.

gitze commented 3 years ago

Have you checked if you find my relevant FreeBSD ports useful at all?

No, not yet. Could you point me to the relevant port?

It's on my GitHub account.

Sorry, still not finding it :-(

freultwah commented 3 years ago

Have you checked if you find my relevant FreeBSD ports useful at all?

No, not yet. Could you point me to the relevant port?

It's on my GitHub account.

Sorry, still not finding it :-(

https://github.com/freultwah?tab=repositories

gitze commented 3 years ago

Thanks, I'll have a look.

freswa commented 3 years ago

This seems kinda stalled and doesn't apply cleanly.