mirror of
https://github.com/duplicati/duplicati.git
synced 2025-11-28 11:30:24 +08:00
8 lines
No EOL
368 B
Text
8 lines
No EOL
368 B
Text
if ! command -v systemctl >/dev/null 2>&1; then
|
|
echo "Warning: systemctl not found. Service 'duplicati-agent' will not be enabled or started."
|
|
else
|
|
systemctl enable duplicati-agent || \
|
|
echo "Warning: Failed to enable duplicati-agent service."
|
|
systemctl start duplicati-agent || \
|
|
echo "Warning: Failed to start duplicati-agent service."
|
|
fi |