mirror of
https://github.com/mynodebtc/mynode.git
synced 2025-01-11 19:30:11 +00:00
Don't install rust by default - add script to install extra stuff
This commit is contained in:
parent
0b5c30715d
commit
4c49b1ec08
31
rootfs/standard/usr/bin/mynode-install-extra
Executable file
31
rootfs/standard/usr/bin/mynode-install-extra
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
# Note: This app will install things as the current user
|
||||
|
||||
set -e
|
||||
|
||||
source /usr/share/mynode/mynode_config.sh
|
||||
source /usr/share/mynode/mynode_app_versions.sh
|
||||
|
||||
# Make sure we have an app argument
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: mynode-install-extra <app_name>"
|
||||
exit 1
|
||||
fi
|
||||
APP="$1"
|
||||
|
||||
# Skip for now, probably don't need to stop all servies and require reboot
|
||||
# Shut down main services to save memory and CPU and stop app being reinstalled
|
||||
#/usr/bin/mynode_stop_critical_services.sh
|
||||
|
||||
|
||||
# Custom re-install steps
|
||||
if [ "$APP" = "rust" ] || [ "$APP" = "cargo" ]; then
|
||||
wget https://sh.rustup.rs -O /tmp/setup_rust.sh
|
||||
/bin/bash /tmp/setup_rust.sh -y
|
||||
else
|
||||
echo "Dont know what to do for app: $APP"
|
||||
exit
|
||||
fi
|
||||
|
||||
sync
|
||||
echo "Install Complete!"
|
|
@ -257,13 +257,6 @@ pip3 install redis
|
|||
pip3 install systemd
|
||||
|
||||
|
||||
# Install Rust
|
||||
if [ ! -f /tmp/installed_rust ]; then
|
||||
wget https://sh.rustup.rs -O /tmp/setup_rust.sh
|
||||
/bin/bash /tmp/setup_rust.sh -y
|
||||
touch /tmp/installed_rust
|
||||
fi
|
||||
|
||||
# Install node
|
||||
if [ ! -f /tmp/installed_node ]; then
|
||||
curl -sL https://deb.nodesource.com/setup_$NODE_JS_VERSION | bash -
|
||||
|
|
Loading…
Reference in New Issue
Block a user