-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprep.sh
executable file
·22 lines (15 loc) · 1.05 KB
/
prep.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
/bin/rm -f /usr/share/ovirt-guest-agent/LockActiveSession.py{c,o}
/bin/rm -f /usr/share/ovirt-guest-agent/LogoutActiveUser.py{c,o}
# Fake being the host - To show the Atomic Host release
/bin/rm -f /etc/redhat-release
# Replaced with bind mount
#/bin/ln -sf /host/etc/redhat-release /etc/redhat-release
echo '#!/usr/bin/python' > /usr/share/ovirt-guest-agent/LockActiveSession.py
echo '#!/usr/bin/python' > /usr/share/ovirt-guest-agent/LogoutActiveUser.py
/bin/rm -f /usr/share/ovirt-guest-agent/CredServer.py*
/bin/ln -sf /usr/local/bin/ovirt-container-shutdown.sh /usr/share/ovirt-guest-agent/ovirt-shutdown
/bin/ln -sf /usr/share/ovirt-guest-agent/LockActiveSession.py /usr/share/ovirt-guest-agent/ovirt-locksession
/bin/ln -sf /usr/share/ovirt-guest-agent/LogoutActiveUser.py /usr/share/ovirt-guest-agent/ovirt-logout
/bin/ln -sf /usr/share/ovirt-guest-agent/container-list /usr/share/ovirt-guest-agent/ovirt-container-list
/bin/ln -sf /usr/share/ovirt-guest-agent/scripts/hooks/defaults/flush-caches /usr/share/ovirt-guest-agent/ovirt-flush-caches