Update instance.sh

This commit is contained in:
2024-10-27 15:24:59 -05:00
parent 1433df3526
commit c2d692d57a

View File

@@ -141,10 +141,7 @@ new_instance() {
mkdir $OCTOCONFIG/$INSTANCE
cat $SCRIPTDIR/docker-compose.yml | \
sed -e "s/NEWINSTANCE/$INSTANCE/" \
-e "s/CAMPORT/$CAMPORT/" > \
-e "s/NEWPORT/$PORT/" > $OCTOCONFIG/$INSTANCE/docker-compose.yml
cat $SCRIPTDIR/docker-compose.yml | sed -e "s/NEWINSTANCE/$INSTANCE/" -e "s/CAMPORT/$CAMPORT/" -e "s/NEWPORT/$PORT/" > $OCTOCONFIG/$INSTANCE/docker-compose.yml
#write phase
if [ -n "$UDEV" ] || [ -n "$USB" ]; then