File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,12 @@ void Installer::installStartupService(string sysService) {
7373#else
7474void 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]\n Type=simple\n WorkingDirectory=" << fs::current_path ().string () << " \n ExecStart=" << fs::current_path ().string () << " /hajime\n\n [Install]\n WantedBy=multi-user.target" ;
8484 service.close ();
You can’t perform that action at this time.
0 commit comments