crontab: remove ordered_path function

This commit is contained in:
lelgenio 2021-03-31 13:10:28 -03:00
parent 6a7046af59
commit 29cb098607
2 changed files with 1 additions and 12 deletions

View File

@ -1,5 +1,5 @@
# {{@@ header() @@}}
PATH={{@@ ordered_path() @@}}
PATH={{@@ env['PATH'] @@}}
# {%@@ if env['USER'] != 'root' @@%} #
#minute hour day month day_week cmd

View File

@ -7,17 +7,6 @@ def parent_dir(path):
return os.path.split(path)[0]
def ordered_path():
PATH = os.environ['PATH']
newPATH = []
for i in PATH.split(":"):
if i not in newPATH:
newPATH.append(i)
return ':'.join(newPATH)
def rclone_obscure(pass_name):
try:
fPath = os.path.expanduser("~/.config/rclone/rclone.conf")