remove config-file, change service-unit
change option-parsing
This commit is contained in:
parent
73c9dd4702
commit
cd7f206deb
2 changed files with 3 additions and 5 deletions
|
@ -229,8 +229,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", type=bool, default=False)
|
||||
parser.add_argument("-M", "--monthlydir", type=bool, default=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'
|
||||
|
|
|
@ -2,7 +2,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} -y ${YEARLYDIR} -M ${MONHTLYDIR}
|
||||
ExecStart=/usr/bin/python3 -u /usr/local/bin/workdirfs.py
|
||||
ExecStop=/usr/bin/fusermount -u ${MOUNTPOINT}
|
||||
|
|
Loading…
Reference in a new issue