Additional style fixes
parent
364460a787
commit
449307c7df
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue