Skip to content

Commit 4c3d593

Browse files
authored
Fix sysdService
1 parent a5a498d commit 4c3d593

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/installer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ void Installer::installStartupService(string sysService) {
7373
#else
7474
void Installer::installStartupService(string sysService) {
7575
if (getuid()) {logObj.out("You need to be the root user to install a systemd service", Error);}
76-
if (fs::is_directory("/etc/systemd") && fs::is_regular_file(sysdService)) {
76+
if (fs::is_directory("/etc/systemd") && fs::is_regular_file(sysService)) {
7777
logObj.out("Found an existing systemd service", Warning);
7878
}
79-
if (fs::is_directory("/etc/systemd") && !fs::is_regular_file(sysdService)) {
79+
if (fs::is_directory("/etc/systemd") && !fs::is_regular_file(sysService)) {
8080
logObj.out("Making systemd service...", Info);
81-
ofstream service(sysdService);
81+
ofstream service(sysService);
8282
service << "[Unit]" << endl << "Description=Starts Hajime" << endl;
8383
service << endl << "[Service]\nType=simple\nWorkingDirectory=" << fs::current_path().string() << "\nExecStart=" << fs::current_path().string() << "/hajime\n\n[Install]\nWantedBy=multi-user.target";
8484
service.close();

0 commit comments

Comments
 (0)