Code:
pct exec 7000 -- bash -c "echo 'APT::periodic::Update-Package-Lists "1";
APT::periodic::Download-Upgradeable-Packages "1";
APT::periodic::AutocleanInterval "7";
APT::periodic::Unattended-Upgrade "1";' > /etc/apt/apt.conf.d/20auto-upgrades"
answer:
Code:
bash: -c: option requires an argument
-> to many cascaded " is the problem?
How can I solve that syntax problem? \" does not work....
As above but clearly structured:
Code:
pct exec 7000 -- bash -c
"
echo '
APT::periodic::Update-Package-Lists "1";
APT::periodic::Download-Upgradeable-Packages "1";
APT::periodic::AutocleanInterval "7";
APT::periodic::Unattended-Upgrade "1";
'
> /etc/apt/apt.conf.d/20auto-upgrades
"
Last edited: