Milis Linux Servis Yönetimi için Arayüz Uygulaması
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
260B

  1. #!/bin/bash
  2. APP_PATH="/usr/bin/mservice.py"
  3. # Check for "socket" argument
  4. for i in "$@"; do
  5. if [[ "$i" == "-s="* ]] || [[ "$i" == "--socket-id="* ]]; then
  6. pkexec "${APP_PATH}" "$@" || "${APP_PATH}" "$@"
  7. exit $?
  8. fi
  9. done
  10. pkexec "${APP_PATH}" "$@"