mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-12-23 00:32:16 +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
|
||||
|
||||
[PLUGIN]
|
||||
pluginfolderpath = /opt/ahenk/plugins/
|
||||
pluginfolderpath = /usr/share/ahenk/plugins/
|
||||
mainmodulename = main
|
||||
|
||||
[CONNECTION]
|
||||
|
|
|
@ -4,8 +4,8 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python3 /opt/ahenk/ahenkd.py start
|
||||
ExecStop=/usr/bin/python3 /opt/ahenk/ahenkd.py stop
|
||||
ExecStart=/usr/bin/python3 /usr/share/ahenk/ahenkd.py start
|
||||
ExecStop=/usr/bin/python3 /usr/share/ahenk/ahenkd.py stop
|
||||
PIDFile=/var/run/ahenkd.pid
|
||||
Restart=always
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class Agreement:
|
|||
self.message_manager = scope.get_message_manager()
|
||||
self.messenger = scope.get_messenger()
|
||||
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.')
|
||||
|
||||
def agreement_contract_update(self):
|
||||
|
|
|
@ -316,7 +316,7 @@ class Util:
|
|||
|
||||
@staticmethod
|
||||
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:
|
||||
|
||||
if username is not None:
|
||||
|
|
|
@ -25,6 +25,6 @@ if [ -n $PAM_USER ] && [ $PAM_USER != "root" ]; then
|
|||
TTY_DISPLAY="$PAM_TTY"
|
||||
fi
|
||||
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
|
||||
|
|
|
@ -25,6 +25,6 @@ if [ -n $PAM_USER ] && [ $PAM_USER != "root" ]; then
|
|||
TTY_DISPLAY="$PAM_TTY"
|
||||
fi
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue