diff --git a/contrib/dokku-installer.py b/contrib/dokku-installer.py index 7f4d2c5dd50..85645912e4d 100755 --- a/contrib/dokku-installer.py +++ b/contrib/dokku-installer.py @@ -48,7 +48,7 @@ def check_boot(): f.write("Description=Dokku web-installer\n") f.write("\n") f.write("[Service]\n") - f.write("ExecStart=#{File.absolute_path(__FILE__)} selfdestruct\n") + f.write("ExecStart={0} selfdestruct\n".format(os.path.abspath(__file__))) f.write("\n") f.write("[Install]\n") f.write("WantedBy=multi-user.target\n")