mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
gpupdate-setup script added to atomize actions of Group Policy switch
This commit is contained in:
parent
056554c35c
commit
d0ff27c45c
32
dist/gpupdate-setup
vendored
Executable file
32
dist/gpupdate-setup
vendored
Executable file
@ -0,0 +1,32 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# GPOA - GPO Applier for Linux
|
||||
#
|
||||
# Copyright (C) 2019-2020 BaseALT Ltd.
|
||||
#
|
||||
# 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
set -eu
|
||||
|
||||
main() {
|
||||
# Enable oddjobd_gpupdate in PAM config
|
||||
/usr/sbin/control system-policy gpupdate
|
||||
# Bootstrap the Group Policy engine
|
||||
/usr/sbin/gpoa --nodomain
|
||||
# Enable gpupdate-setup.service for all users
|
||||
systemctl --global --user enable gpupdate-setup.service
|
||||
}
|
||||
|
||||
main
|
||||
|
Loading…
x
Reference in New Issue
Block a user