Update oci-import.sh

This commit is contained in:
SugoiDogo
2023-01-24 12:53:45 -07:00
committed by GitHub
parent 05b995041f
commit cfe015e9dd
+2 -1
View File
@@ -34,6 +34,7 @@ nspawn_config=/etc/systemd/nspawn/$hostname.nspawn
cat << end > "$nspawn_config" cat << end > "$nspawn_config"
[Exec] [Exec]
ProcessTwo=true ProcessTwo=true
PrivateUsers=false
end end
for environment in $(jq --compact-output '.process.env' "$oci_config" | sed "s/[][]//g;s/\"//g;s/,/ /g") for environment in $(jq --compact-output '.process.env' "$oci_config" | sed "s/[][]//g;s/\"//g;s/,/ /g")
@@ -87,4 +88,4 @@ fi
cat << end cat << end
Start/Enable with systemd-nspawn@$hostname.service Start/Enable with systemd-nspawn@$hostname.service
$hostname created from $source $hostname created from $source
end end