1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-11 05:17:55 +03:00

fixed unmanaged

This commit is contained in:
Adolfo Gómez García 2020-02-18 14:32:21 +01:00
parent 3bc08d6b86
commit ffeabe15ee
10 changed files with 1 additions and 205 deletions

View File

@ -1,28 +0,0 @@
#!/bin/sh
. /usr/share/debconf/confmodule
set -e
case "$1" in
configure)
/usr/bin/python3 -m compileall /usr/share/UDSActor > /dev/nul 2>&1
# Fix perms so only root can access "masterKey"
chmod 0700 /etc/udsactor
# chmod 0600 /etc/udsactor/udsactor.cfg
chown root:root /etc/udsactor
# chown root:root /etc/udsactor/udsactor.cfg
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0

View File

@ -1,13 +0,0 @@
Package: udsactor-unmanaged
Source: udsactor
Version: 3.0.0
Architecture: all
Maintainer: Adolfo Gómez García <agomez@virtualcable.net>
Installed-Size: 285
Depends: policykit-1 (>= 0.100), python3-requests (>= 0.8.2), python3-pyqt5 (>= 4.9), python3-six (>= 1.1), python3 (>= 3.4), libxss1, xscreensaver, debconf (>= 0.5) | debconf-2.0
Recommends: python3-prctl (>= 1.1.1)
Section: admin
Priority: optional
Homepage: http://www.udsenterprise.com
Description: Actor for Universal Desktop Services (UDS) Broker Static Unmanaged machines
This package provides the required components to allow unmanaged machines (static, independent machines) to work on an environment managed by UDS Broker.

View File

@ -1,58 +0,0 @@
85c4b43088c4c599cfcdf603dd45255b lib/systemd/system/udsactor-unmanaged.service
6e54eda92cfd6bbda74edbdc86297388 usr/bin/UDSActorTool
95ba71e80850a859521ed142a08ea175 usr/bin/UDSActorTool-startup
830a76b7609ee0dfba85b8bc40909e1c usr/bin/udsactor
f74bb5457641bbd47aaab3bc9ee0117d usr/bin/udsvapp
92cd98cd64f87d9d20ecb9bbfd1904a6 usr/sbin/UDSActorConfig
3e73b46d910e2f280546517960428487 usr/sbin/UDSActorConfig-pkexec
7fedefd806eca361bfaa52f48bbc22b1 usr/share/UDSActor/actor_client.py
a5da5307568d1ce8caffc83c4bbc3cc8 usr/share/UDSActor/actor_config.py
93f90e9597bbd35e741c262d1e83ae93 usr/share/UDSActor/actor_config_unmanaged.py
520cc84ae2e83c6b2f09a9aeabdbff95 usr/share/UDSActor/actor_service.py
16dd4b293b477cd582a415a7ede4267c usr/share/UDSActor/img/uds-icon.png
280dc52dbf91e3c08e2e680f6e9fbc9b usr/share/UDSActor/udsactor/__init__.py
1df76e29e9d5fcefc1c90f52f46e2874 usr/share/UDSActor/udsactor/certs.py
35de66713f83a996741c138b3a87efa6 usr/share/UDSActor/udsactor/client.py
d41d8cd98f00b204e9800998ecf8427e usr/share/UDSActor/udsactor/http/__init__.py
0d2bd16d1c10974e2fa11cbb1efb9fdc usr/share/UDSActor/udsactor/http/client.py
faacbeaf03633623b13b86f85687a4c8 usr/share/UDSActor/udsactor/http/clients_pool.py
e14a1a7526c13fc6463ac9b34a88c2ea usr/share/UDSActor/udsactor/http/handler.py
39a95cf004702087c96f3f2cff39aee2 usr/share/UDSActor/udsactor/http/local.py
043a23eddbb3346602e3510b76d38fc9 usr/share/UDSActor/udsactor/http/public.py
a26946123620d7c6651cb60a4ca9f551 usr/share/UDSActor/udsactor/http/server.py
c6391d28f7762b9abce3664c1be2191a usr/share/UDSActor/udsactor/info.py
6aa6120d57f8666b21240db0e5a0a874 usr/share/UDSActor/udsactor/linux/__init__.py
a4ffcb8be9b04d402d2676b4ef5d8a1a usr/share/UDSActor/udsactor/linux/daemon.py
7240442cb3634f966c80b97d4a981e64 usr/share/UDSActor/udsactor/linux/log.py
7a9ce9d6174d01b41d78bd747a91143e usr/share/UDSActor/udsactor/linux/operations.py
8dc37d5a5db356f14a896cfb1bf39619 usr/share/UDSActor/udsactor/linux/renamer/__init__.py
bb3cf27470093e3a8c072b59d962e076 usr/share/UDSActor/udsactor/linux/renamer/common.py
67bd51f61e5342e99a524edb40015a9c usr/share/UDSActor/udsactor/linux/renamer/debian.py
d4078d2bc70dd654b85f6ae13a123b7a usr/share/UDSActor/udsactor/linux/renamer/opensuse.py
713cf6f7e71362733224e280cb2af440 usr/share/UDSActor/udsactor/linux/renamer/redhat.py
c58a39c430f04f737bc593df2ebd8c4f usr/share/UDSActor/udsactor/linux/runner.py
1917dce1bcdf8f64fb3e1109b02af066 usr/share/UDSActor/udsactor/linux/service.py
8d39ca4764e291190fd1b496205c8db9 usr/share/UDSActor/udsactor/linux/store.py
9ce982b4c96e6c109f6d4d41e8bf3085 usr/share/UDSActor/udsactor/linux/xss.py
0cb7437d8b2287cb53db49ca9d0dabcc usr/share/UDSActor/udsactor/log.py
1285e5c1b766f05d48eaaa18a8fd3850 usr/share/UDSActor/udsactor/platform.py
fa3646c0a196ebe5261146414e3a6b6e usr/share/UDSActor/udsactor/rest.py
99a95a268fa7a86c8d093d93b009fb2b usr/share/UDSActor/udsactor/service.py
514c1d69c8755fd324c7577dbb4d0567 usr/share/UDSActor/udsactor/tools.py
d19bdf2936027b253cf6138554d31d61 usr/share/UDSActor/udsactor/types.py
d1dd91345915205bb2218e76a5c5995f usr/share/UDSActor/udsactor/windows/SENS.py
6aa6120d57f8666b21240db0e5a0a874 usr/share/UDSActor/udsactor/windows/__init__.py
a4ba2bff7752dfca56668b656193de3b usr/share/UDSActor/udsactor/windows/log.py
26a4abe46e92fafca58f2d24103d6b92 usr/share/UDSActor/udsactor/windows/operations.py
c26856f6fc2f6a04c989858eee6413a4 usr/share/UDSActor/udsactor/windows/runner.py
d9745807a7bba396448a65ffb119bf96 usr/share/UDSActor/udsactor/windows/service.py
235b66ff36d050097c8d4d40f1785254 usr/share/UDSActor/udsactor/windows/store.py
d41d8cd98f00b204e9800998ecf8427e usr/share/UDSActor/ui/__init__.py
8172a259264d6ecc6852c246cc59d75c usr/share/UDSActor/ui/setup_dialog_ui.py
b10034f4be44795b212ceeb6f7f0cf2d usr/share/UDSActor/ui/setup_dialog_unmanaged_ui.py
4c20f9d0fa4e7a348a04ecc38b4ae58f usr/share/UDSActor/ui/uds_rc.py
74c981f4ddba27c5f199180ff782a4cd usr/share/applications/UDS_Actor_Configuration.desktop
5cfb0c1950a46e43d64935ccfcd679d0 usr/share/autostart/UDSActorTool.desktop
5a463be6812fd9d7de89cf6b55fa4e94 usr/share/doc/udsactor-unmanaged/changelog.gz
26d795ffa6dccbe9be390c5a7c4cff38 usr/share/doc/udsactor-unmanaged/copyright
09d1c23985f1b8ff8d560dd727624f18 usr/share/polkit-1/actions/org.openuds.pkexec.UDSActorConfig.policy

View File

@ -1,32 +0,0 @@
#!/bin/sh
set -e
# Automatically added by dh_systemd_enable/12.1.1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
# This will only remove masks created by d-s-h on package removal.
deb-systemd-helper unmask 'udsactor-unmanaged.service' >/dev/null || true
# was-enabled defaults to true, so new installations run enable.
if deb-systemd-helper --quiet was-enabled 'udsactor-unmanaged.service'; then
# Enables the unit on first installation, creates new
# symlinks on upgrades if the unit file has changed.
deb-systemd-helper enable 'udsactor-unmanaged.service' >/dev/null || true
else
# Update the statefile to add new symlinks (if any), which need to be
# cleaned up on purge. Also remove old symlinks.
deb-systemd-helper update-state 'udsactor-unmanaged.service' >/dev/null || true
fi
fi
# End automatically added section
# Automatically added by dh_systemd_start/12.1.1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
deb-systemd-invoke $_dh_action 'udsactor-unmanaged.service' >/dev/null || true
fi
fi
# End automatically added section

View File

@ -1,27 +0,0 @@
#!/bin/sh
set -e
# Automatically added by dh_systemd_start/12.1.1
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_systemd_enable/12.1.1
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask 'udsactor-unmanaged.service' >/dev/null || true
fi
fi
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge 'udsactor-unmanaged.service' >/dev/null || true
deb-systemd-helper unmask 'udsactor-unmanaged.service' >/dev/null || true
fi
fi
# End automatically added section
# Automatically added by dh_installdebconf/12.1.1
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section

View File

@ -1,7 +0,0 @@
#!/bin/sh
set -e
# Automatically added by dh_systemd_start/12.1.1
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop 'udsactor-unmanaged.service' >/dev/null || true
fi
# End automatically added section

View File

@ -1,14 +0,0 @@
[Unit]
Description=UDS Broker actor
After=network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/usr/share/UDSActor
ExecStart=/usr/bin/python3 actor_service.py start-foreground
PrivateTmp=true
[Install]
WantedBy=multi-user.target

View File

@ -1,26 +0,0 @@
Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
Name: udsactor
Maintainer: Adolfo Gómez García
Source: http://www.udsenterprise.com/
Copyright: 2014-2019 Virtual Cable S.L.U.
License: BSD-3-clause
License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
.
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file
`/usr/share/common-licenses/GPL-2'.

View File

@ -172,6 +172,7 @@ class CommonService: # pylint: disable=too-many-instance-attributes
# Do not continue if not alive...
if not self._isAlive:
return
# Cleans sensible data
if self._cfg.config:
self._cfg = self._cfg._replace(config=self._cfg.config._replace(os=None), data=None)