diff options
author | EndlessEden | 2021-09-15 22:44:05 +1000 |
---|---|---|
committer | EndlessEden | 2021-09-15 22:44:05 +1000 |
commit | f0c8ae8782cc45274e8991e0e7a5264299f4ecb2 (patch) | |
tree | 9be805b88f8c02eb2a2ee046fceb61e9bc16c0a6 | |
parent | 9a498938946b2f2ba5262915ae6ad92aef95ebdf (diff) | |
download | aur-f0c8ae8782cc45274e8991e0e7a5264299f4ecb2.tar.gz |
WIP: Should start using system req's instead of upstream. Had to use some funky work to get python virtual enviorments/setup init working.
-rw-r--r-- | craftycontroller.install | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/craftycontroller.install b/craftycontroller.install index 606b44111e36..9f2482214b6d 100644 --- a/craftycontroller.install +++ b/craftycontroller.install @@ -1,35 +1,35 @@ post_install() { - echo "Creating user for Crafty Controller..." + echo 'Creating user for Crafty Controller...' - useradd -M -r -s /bin/bash -b "/opt/craftycontroller" crafty + useradd -M -r -s /bin/bash -b '/opt/craftycontroller' crafty - echo "Setting Permissions..." + echo 'Setting Permissions...' - chown -R crafty:crafty "/opt/craftycontroller" + chown -R crafty:crafty '/opt/craftycontroller' - echo "Creating the Python Virtual Enviorment..." + echo 'Creating the Python Virtual Enviorment..." - cd "/opt/craftycontroller" + cd '/opt/craftycontroller' python3 -m venv craftycontroller - echo "Warning: About to run first-time Launch!" + echo 'Warning: About to run first-time Launch!' - echo " " + echo - echo "Prepare for prompt, for first-time configuration!" + echo 'Prepare for prompt, for first-time configuration!' - echo "Crafty Controller/Crafty Web, is located at: /opt/craftycontroller" + echo 'Crafty Controller/Crafty Web, is located at: /opt/craftycontroller' - echo " " + echo ' ' - echo "Starting..." + echo 'Starting...' - echo "3..." + echo '3...' - echo "2.. + echo '2..' - echo "1." + echo '1.' sudo -u crafty /usr/bin/bash -c /opt/craftycontroller/start.sh && export success=1 & exit 0 @@ -38,11 +38,11 @@ post_install() { fi if [ "$success" == "0" ]; then - echo "Initialisation failed, Please run /opt/craftycontroller/start.sh as crafty user." + echo 'Initialisation failed, Please run /opt/craftycontroller/start.sh as crafty user.' fi } post_remove() { - echo "Removing Crafty User" + echo 'Removing Crafty User' userdel crafty } |