diff --git a/stage5-common/00-install/00-run.sh b/stage5-common/00-install/00-run.sh index c75b3e7..28aadc9 100755 --- a/stage5-common/00-install/00-run.sh +++ b/stage5-common/00-install/00-run.sh @@ -49,7 +49,7 @@ install -v -m 755 files/get_position.sh "${ROOTFS_DIR}/usr/local/bin/" id lincot || useradd --system lincot -export APP_NAME="LINCOT" +APP_NAME="LINCOT" install -v -m 644 "files/${APP_NAME}-config.txt" "${ROOTFS_DIR}/boot/" install -v -m 755 "files/run_${APP_NAME}.sh" "${ROOTFS_DIR}/usr/local/sbin/" install -v -m 644 "files/${APP_NAME}.service" "${ROOTFS_DIR}/lib/systemd/system/" diff --git a/stage5-common/00-install/files/lincot-config.txt b/stage5-common/00-install/files/lincot-config.txt index c8ae669..b32ffd5 100644 --- a/stage5-common/00-install/files/lincot-config.txt +++ b/stage5-common/00-install/files/lincot-config.txt @@ -15,4 +15,5 @@ # limitations under the License. # -CALLSIGN="" \ No newline at end of file + +CALLSIGN="" diff --git a/stage5-common/00-install/test_00-run.sh b/stage5-common/00-install/test_00-run.sh deleted file mode 100755 index 4c3fa41..0000000 --- a/stage5-common/00-install/test_00-run.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -e -# AryaOS test_00-run.sh -# -# Copyright Sensors & Signals LLC https://www.snstac.com/ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - - -function gen_aos_service_sudoers() { - SERVICES=${1:-"$AOS_SERVICES"} - for srv in ${SERVICES}; do - echo "node-red ALL=(root) NOPASSWD: /bin/systemctl disable ${srv}" - echo "node-red ALL=(root) NOPASSWD: /bin/systemctl enable ${srv}" - echo "node-red ALL=(root) NOPASSWD: /bin/systemctl start ${srv}" - echo "node-red ALL=(root) NOPASSWD: /bin/systemctl stop ${srv}" - echo "node-red ALL=(root) NOPASSWD: /bin/systemctl restart ${srv}" - done -} - -SUDO_SERVICES="a b c d ${AOS_SERVICES}" -gen_aos_service_sudoers #"${SUDO_SERVICES}" \ No newline at end of file