Fix start argument by default issue
This commit is contained in:
parent
1b58dfad31
commit
988a38b1f9
@ -71,7 +71,7 @@
|
|||||||
apps = {
|
apps = {
|
||||||
default = {
|
default = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = "${self.packages.${system}.default}/bin/systant start";
|
program = "${self.packages.${system}.default}/bin/systant";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,7 +19,12 @@ beamPackages.mixRelease rec {
|
|||||||
export RELEASE_DISTRIBUTION=none
|
export RELEASE_DISTRIBUTION=none
|
||||||
export RELEASE_NODE=nonode@nohost
|
export RELEASE_NODE=nonode@nohost
|
||||||
export RELEASE_COOKIE=dummy_cookie_for_single_node
|
export RELEASE_COOKIE=dummy_cookie_for_single_node
|
||||||
exec "$out/bin/.systant-wrapped" "\$@"
|
# Default to "start" command if no arguments provided
|
||||||
|
if [ \$# -eq 0 ]; then
|
||||||
|
exec "$out/bin/.systant-wrapped" start
|
||||||
|
else
|
||||||
|
exec "$out/bin/.systant-wrapped" "\$@"
|
||||||
|
fi
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/systant
|
chmod +x $out/bin/systant
|
||||||
'';
|
'';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user