Skip to content

Commit

Permalink
lsbtools/install_initd.py: fix error in previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
djlucas committed Nov 11, 2020
1 parent fdf518b commit d25cade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lsbtools/install_initd.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,13 @@
sid = 0
for s in sysinit:
sname = s[hindex["name"]]
target = os.path.join(rldir, sname)
target = os.path.join(os.path.relpath(initdDir, rldir), sname)
if sid < 10:
strsid = "0" + str(sid)
else:
strsid = str(sid)
gname = "S" + strsid + sname
spath = os.path.join(os.path.relpath(initdDir, rldir), gname)
spath = os.path.join(rldir, gname)
if debug == 1 or dryrun == 1:
print("Adding", spath, "->", target)
if dryrun == 0:
Expand Down

0 comments on commit d25cade

Please sign in to comment.