test(packer): update sources
This commit is contained in:
parent
fa6c37a7ab
commit
6d5a522dcb
6 changed files with 14 additions and 33 deletions
|
|
@ -17,12 +17,11 @@ readonly DISTRIBUTION
|
||||||
main() {
|
main() {
|
||||||
install -dm0750 -o "$SUDO_USER" -g "$SUDO_USER" "/home/$SUDO_USER/Projects/" "/home/$SUDO_USER/Projects/apparmor.d" "/home/$SUDO_USER/.config/"
|
install -dm0750 -o "$SUDO_USER" -g "$SUDO_USER" "/home/$SUDO_USER/Projects/" "/home/$SUDO_USER/Projects/apparmor.d" "/home/$SUDO_USER/.config/"
|
||||||
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/.bash_aliases "/home/$SUDO_USER/.bash_aliases"
|
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/.bash_aliases "/home/$SUDO_USER/.bash_aliases"
|
||||||
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/monitors.xml "/home/$SUDO_USER/.config/monitors.xml"
|
|
||||||
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/htoprc "/home/$SUDO_USER/.config/htop/htoprc"
|
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/htoprc "/home/$SUDO_USER/.config/htop/htoprc"
|
||||||
|
install -Dm0644 $SRC/parser.conf /etc/apparmor/parser.conf
|
||||||
install -Dm0644 $SRC/site.local /etc/apparmor.d/tunables/multiarch.d/site.local
|
install -Dm0644 $SRC/site.local /etc/apparmor.d/tunables/multiarch.d/site.local
|
||||||
install -Dm0755 $SRC/aa-update /usr/bin/aa-update
|
install -Dm0755 $SRC/aa-update /usr/bin/aa-update
|
||||||
install -Dm0755 $SRC/aa-log-clean /usr/bin/aa-log-clean
|
install -Dm0755 $SRC/aa-clean /usr/bin/aa-clean
|
||||||
cat $SRC/parser.conf >>/etc/apparmor/parser.conf
|
|
||||||
chown -R "$SUDO_USER:$SUDO_USER" "/home/$SUDO_USER/.config/"
|
chown -R "$SUDO_USER:$SUDO_USER" "/home/$SUDO_USER/.config/"
|
||||||
|
|
||||||
case "$DISTRIBUTION" in
|
case "$DISTRIBUTION" in
|
||||||
|
|
|
||||||
4
tests/packer/src/aa-clean
Normal file
4
tests/packer/src/aa-clean
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -eu -o pipefail
|
||||||
|
rm -vf /var/log/audit/* /var/log/syslog*
|
||||||
|
touch /var/log/audit/audit.log /var/log/syslog
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -eu
|
|
||||||
rm -rf /var/log/audit/*
|
|
||||||
touch /var/log/audit/audit.log
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu -o pipefail
|
||||||
|
|
||||||
export BUILDDIR=/tmp/build/
|
export BUILDDIR=/tmp/build/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
<monitors version="2">
|
|
||||||
<configuration>
|
|
||||||
<logicalmonitor>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<scale>1</scale>
|
|
||||||
<primary>yes</primary>
|
|
||||||
<monitor>
|
|
||||||
<monitorspec>
|
|
||||||
<connector>Virtual-1</connector>
|
|
||||||
<vendor>RHT</vendor>
|
|
||||||
<product>QEMU Monitor</product>
|
|
||||||
<serial>0x00000000</serial>
|
|
||||||
</monitorspec>
|
|
||||||
<mode>
|
|
||||||
<width>1920</width>
|
|
||||||
<height>1080</height>
|
|
||||||
<rate>60</rate>
|
|
||||||
</mode>
|
|
||||||
</monitor>
|
|
||||||
</logicalmonitor>
|
|
||||||
</configuration>
|
|
||||||
</monitors>
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
|
# Turn creating/updating of the cache on by default
|
||||||
write-cache
|
write-cache
|
||||||
cache-loc /etc/apparmor/earlypolicy/
|
|
||||||
|
# Enable early policy loads to confine systemd, and services that can not depend
|
||||||
|
# on the apparmor unit.
|
||||||
|
cache-loc=/etc/apparmor/earlypolicy/
|
||||||
|
|
||||||
|
# Adjust compression
|
||||||
Optimize=compress-fast
|
Optimize=compress-fast
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue