summaryrefslogtreecommitdiff
path: root/hscript/meta.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-29 07:22:11 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-29 07:22:11 -0500
commitde2b1368799c8b4c3ce15b6515ef2f1a2175a826 (patch)
tree4243916c96f6d0d562962a77c98a928bdfec1789 /hscript/meta.cc
parent5595a79c6c5c73203f55d3a759a7af921ed34c1a (diff)
downloadhorizon-de2b1368799c8b4c3ce15b6515ef2f1a2175a826.tar.gz
horizon-de2b1368799c8b4c3ce15b6515ef2f1a2175a826.tar.bz2
horizon-de2b1368799c8b4c3ce15b6515ef2f1a2175a826.tar.xz
horizon-de2b1368799c8b4c3ce15b6515ef2f1a2175a826.zip
hscript: Allow multiple svcenables to not break
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r--hscript/meta.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc
index 10b0589..7552ab9 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -664,7 +664,7 @@ bool SvcEnable::execute() const {
}
fs::create_symlink(initd, target, ec);
- if(ec) {
+ if(ec && ec.value() != EEXIST) {
output_error(pos, "svcenable: could not enable service " + _svc,
ec.message());
return false;