From 191a8df1049f53aae05dc161f15942538d135617 Mon Sep 17 00:00:00 2001 From: Mayank Date: Mon, 6 Jul 2020 16:25:09 +0530 Subject: [PATCH] Revert rc.local --- stage2/01-sys-tweaks/files/rc.local | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/stage2/01-sys-tweaks/files/rc.local b/stage2/01-sys-tweaks/files/rc.local index 38153ae..4991680 100755 --- a/stage2/01-sys-tweaks/files/rc.local +++ b/stage2/01-sys-tweaks/files/rc.local @@ -11,10 +11,6 @@ # # By default this script does nothing. -exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file -exec 1>&2 # send stdout to the same log file -set -x # tell sh to display commands before execution - # Print the IP address _IP=$(hostname -I) || true if [ "$_IP" ]; then @@ -42,22 +38,6 @@ if [ ! -f /home/umbrel/statuses/disk-partitioned ]; then fi fi -# Check if docker images have been loaded -if [ ! -f /home/umbrel/statuses/images-loaded ]; then - if [ -f /home/umbrel/umbrel-docker-images.tar.gz ]; then - echo "Loading pre-bundled Docker images" - start=`date +%s` - docker load -i /home/umbrel/umbrel-docker-images.tar.gz || exit 1 - end=`date +%s` - echo "It took $((($end - $start)/60)) minutes ($((end - start)) seconds) to load all the images" - rm -f /home/umbrel/umbrel-docker-images.tar.gz - touch /home/umbrel/statuses/images-loaded - chown -R umbrel.umbrel /home/umbrel/statuses/images-loaded - else - echo "Could not find pre-bundled Docker images" - fi -fi - if [ ! -f /home/umbrel/statuses/service-configured ]; then if [ -f /home/umbrel/bin/rpcauth.py ]; then echo "Running rpcauth.py, and generating secrets for bitcoind"