mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 07:22:17 +03:00
Change commands calling ahenkd from /opt to /usr/share
This commit is contained in:
parent
95521b1e8d
commit
76d563dd9e
6 changed files with 7 additions and 7 deletions
|
@ -3,7 +3,7 @@ logconfigurationfilepath = /etc/ahenk/log.conf
|
||||||
dbpath = /etc/ahenk/ahenk.db
|
dbpath = /etc/ahenk/ahenk.db
|
||||||
|
|
||||||
[PLUGIN]
|
[PLUGIN]
|
||||||
pluginfolderpath = /opt/ahenk/plugins/
|
pluginfolderpath = /usr/share/ahenk/plugins/
|
||||||
mainmodulename = main
|
mainmodulename = main
|
||||||
|
|
||||||
[CONNECTION]
|
[CONNECTION]
|
||||||
|
|
|
@ -4,8 +4,8 @@ After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/python3 /opt/ahenk/ahenkd.py start
|
ExecStart=/usr/bin/python3 /usr/share/ahenk/ahenkd.py start
|
||||||
ExecStop=/usr/bin/python3 /opt/ahenk/ahenkd.py stop
|
ExecStop=/usr/bin/python3 /usr/share/ahenk/ahenkd.py stop
|
||||||
PIDFile=/var/run/ahenkd.pid
|
PIDFile=/var/run/ahenkd.pid
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ class Agreement:
|
||||||
self.message_manager = scope.get_message_manager()
|
self.message_manager = scope.get_message_manager()
|
||||||
self.messenger = scope.get_messenger()
|
self.messenger = scope.get_messenger()
|
||||||
self.db_service = scope.get_db_service()
|
self.db_service = scope.get_db_service()
|
||||||
self.ask_path = '/opt/ahenk/base/agreement/ask.py'
|
self.ask_path = '/usr/share/ahenk/base/agreement/ask.py'
|
||||||
self.logger.debug('Instance initialized.')
|
self.logger.debug('Instance initialized.')
|
||||||
|
|
||||||
def agreement_contract_update(self):
|
def agreement_contract_update(self):
|
||||||
|
|
|
@ -316,7 +316,7 @@ class Util:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def ask_permission(display, username, message, title):
|
def ask_permission(display, username, message, title):
|
||||||
ask_path = '/opt/ahenk/base/agreement/confirm.py'
|
ask_path = '/usr/share/ahenk/base/agreement/confirm.py'
|
||||||
try:
|
try:
|
||||||
|
|
||||||
if username is not None:
|
if username is not None:
|
||||||
|
|
|
@ -25,6 +25,6 @@ if [ -n $PAM_USER ] && [ $PAM_USER != "root" ]; then
|
||||||
TTY_DISPLAY="$PAM_TTY"
|
TTY_DISPLAY="$PAM_TTY"
|
||||||
fi
|
fi
|
||||||
log "logout: $PAM_USER service: $SERVICE tty: $TTY_DISPLAY"
|
log "logout: $PAM_USER service: $SERVICE tty: $TTY_DISPLAY"
|
||||||
sudo python3 /opt/ahenk/ahenkd.py logout $PAM_USER
|
sudo python3 /usr/share/ahenk/ahenkd.py logout $PAM_USER
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -25,6 +25,6 @@ if [ -n $PAM_USER ] && [ $PAM_USER != "root" ]; then
|
||||||
TTY_DISPLAY="$PAM_TTY"
|
TTY_DISPLAY="$PAM_TTY"
|
||||||
fi
|
fi
|
||||||
log "login: $PAM_USER service: $SERVICE tty: $TTY_DISPLAY"
|
log "login: $PAM_USER service: $SERVICE tty: $TTY_DISPLAY"
|
||||||
sudo python3 /opt/ahenk/ahenkd.py login $PAM_USER $SERVICE $TTY_DISPLAY
|
sudo python3 /usr/share/ahenk/ahenkd.py login $PAM_USER $SERVICE $TTY_DISPLAY
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue