Change commands calling ahenkd from /opt to /usr/share

This commit is contained in:
Yunusemre Şentürk 2017-11-21 11:36:11 +03:00
parent 95521b1e8d
commit 76d563dd9e
6 changed files with 7 additions and 7 deletions

View File

@ -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]

View File

@ -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

View File

@ -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):

View File

@ -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:

View File

@ -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

View File

@ -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