change options

This commit is contained in:
Jakobus Schürz 2020-02-12 17:44:22 +01:00
parent da180df230
commit 15544d8899
3 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,4 @@
ARCHIVE=${HOME}/archive
MOUNTPOINT=${HOME}/Work
TIMEOFFSET=2
MONTHLYDIR=False
YEARLYDIR=False
OTHER_OPTIONS="-y -M"

View file

@ -228,8 +228,8 @@ if __name__ == '__main__':
all day till 3 o'clock in the morning, set it to 4, so next day
archive-dir will be created 4 hours after midnight. You have 1h
tolerance, if you're working one day a little bit longer""")
parser.add_argument("-y", "--yearlydir", action="store_false")
parser.add_argument("-M", "--monthlydir", action="store_false")
parser.add_argument("-y", "--yearlydir", action="store_true")
parser.add_argument("-M", "--monthlydir", action="store_true")
args = parser.parse_args()
print(args)
#root = os.environ['HOME']+'/archive'

View file

@ -4,5 +4,5 @@ Description=Daily working directory ~/Work
[Service]
EnvironmentFile=/etc/workdirfs.conf
EnvironmentFile=-%h/.config/workdirfs.conf
ExecStart=/usr/bin/python3 -u /usr/local/bin/workdirfs.py --archive ${ARCHIVE} --mountpoint ${MOUNTPOINT} --timeoffset ${TIMEOFFSET} --yearlydir ${YEARLYDIR} --monthlydir ${MONTHLYDIR}
ExecStart=/usr/bin/python3 -u /usr/local/bin/workdirfs.py --archive ${ARCHIVE} --mountpoint ${MOUNTPOINT} --timeoffset ${TIMEOFFSET} ${OTHER_OPTIONS}
ExecStop=/usr/bin/fusermount -u ${MOUNTPOINT}