17 lines
592 B
Bash
17 lines
592 B
Bash
#!/bin/sh
|
|
set -e
|
|
if command -v sysctl >/dev/null 2>&1; then
|
|
sysctl -q -w vm.max_map_count=16777216 >/dev/null 2>&1 || true
|
|
fi
|
|
if command -v systemctl >/dev/null 2>&1; then
|
|
systemctl daemon-reload >/dev/null 2>&1 || true
|
|
systemctl enable --now citizen-launcher-self-update.timer >/dev/null 2>&1 || true
|
|
fi
|
|
if command -v update-desktop-database >/dev/null 2>&1; then
|
|
update-desktop-database /usr/share/applications >/dev/null 2>&1 || true
|
|
fi
|
|
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
|
|
gtk-update-icon-cache -q /usr/share/icons/hicolor >/dev/null 2>&1 || true
|
|
fi
|
|
exit 0
|