Compare commits
2 Commits
0ff3ec0e1b
...
19b2ac7426
| Author | SHA1 | Date | |
|---|---|---|---|
| 19b2ac7426 | |||
| b12f081bc3 |
@@ -219,7 +219,7 @@ helper.mkPodmanService {
|
|||||||
onFailure = [ "service-failure-notify@%n.service" ];
|
onFailure = [ "service-failure-notify@%n.service" ];
|
||||||
startLimitBurst = 5;
|
startLimitBurst = 5;
|
||||||
startLimitIntervalSec = 600;
|
startLimitIntervalSec = 600;
|
||||||
path = [ pkgs.coreutils pkgs.sudo pkgs.podman pkgs.systemd ];
|
path = [ pkgs.coreutils pkgs.sudo pkgs.podman pkgs.systemd pkgs.gnugrep ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
@@ -248,6 +248,7 @@ helper.mkPodmanService {
|
|||||||
for app in ''${INSTALL_APPS_LIST[@]}; do
|
for app in ''${INSTALL_APPS_LIST[@]}; do
|
||||||
if ! $OCC --no-warnings app:list | grep -iq "$app:"; then
|
if ! $OCC --no-warnings app:list | grep -iq "$app:"; then
|
||||||
$OCC --no-warnings app:install "$app"
|
$OCC --no-warnings app:install "$app"
|
||||||
|
fi
|
||||||
if $OCC --no-warnings app:list --disabled | grep -iq "$app:"; then
|
if $OCC --no-warnings app:list --disabled | grep -iq "$app:"; then
|
||||||
$OCC --no-warnings app:enable "$app"
|
$OCC --no-warnings app:enable "$app"
|
||||||
fi
|
fi
|
||||||
@@ -255,6 +256,7 @@ helper.mkPodmanService {
|
|||||||
for app in ''${REMOVE_APPS_LIST[@]}; do
|
for app in ''${REMOVE_APPS_LIST[@]}; do
|
||||||
if $OCC --no-warnings app:list --enabled | grep -iq "$app:"; then
|
if $OCC --no-warnings app:list --enabled | grep -iq "$app:"; then
|
||||||
$OCC --no-warnings app:disable "$app"
|
$OCC --no-warnings app:disable "$app"
|
||||||
|
fi
|
||||||
if $OCC --no-warnings app:list | grep -iq "$app:"; then
|
if $OCC --no-warnings app:list | grep -iq "$app:"; then
|
||||||
$OCC --no-warnings app:remove "$app"
|
$OCC --no-warnings app:remove "$app"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user