Browse Source

Updated some things.

master
Chase 6 months ago
parent
commit
d0965d716f
7 changed files with 14 additions and 16 deletions
  1. 10
      Bibliogram/bibliogram.sh
  2. 4
      Bibliogram/kill-and-update.sh
  3. 1
      New-LXC/README.md
  4. 3
      New-LXC/setup.sh
  5. 1
      Plex/fixperms.sh
  6. 3
      iMac/Backup.sh
  7. 8
      iMac/Camera.sh

10
Bibliogram/bibliogram.sh

@ -1,5 +1,5 @@
cd bibliogram/
git pull
npm run start
cd ..
#!/bin/bash
screen -S Bibliogram -X quit # Kill any active Bibliogram instances.
cd bibliogram
git pull # Actually update Bibliogram.
npm run start # Start it again.

4
Bibliogram/kill-and-update.sh

@ -1,4 +0,0 @@
#!/bin/bash
screen -S Bibliogram -X quit
/usr/bin/screen -S Bibliogram -d -m /opt/bibliogram/bibliogram.sh

1
New-LXC/README.md

@ -1,2 +1,3 @@
Running this script.
`sudo apt update && sudo apt install wget -y && sudo wget https://git.chasehall.net/Chase/Scripts/raw/branch/master/New-LXC/setup.sh && sudo chmod +x setup.sh && bash setup.sh && rm setup.sh`

3
New-LXC/setup.sh

@ -37,5 +37,4 @@ sed -i 's/#net.ipv4.conf.all.log_martians = 1/net.ipv4.conf.all.log_martians = 1
sudo sysctl -p > /dev/null 2>&1
sudo apt update && sudo apt install fail2ban -y && sudo systemctl enable fail2ban && sudo systemctl start fail2ban
echo "set mouse-=a" >> ~/.vimrc
clear
echo Done.
clear

1
Plex/fixperms.sh

@ -1,3 +1,4 @@
#!/bin/bash
sudo chown -R root:root /media/easystore/Movies
sudo chown -R root:root "/media/easystore/TV Shows"
sudo chmod 777 -R "/media/easystore/Movies"

3
iMac/Backup.sh

@ -8,6 +8,7 @@ $RsyncPart/Documents/* $Location/Documents/
$RsyncPart/Pictures/* $Location/Pictures/
$RsyncPart/Music/* $Location/Music/
$RsyncPart/Movies/* $Location/Movies/
pmset sleepnow
pmset sleepnow # Put Mac back to sleep. (System Prefs wakes it a minute before script fires from cronjob.)
exit

8
iMac/Camera.sh

@ -3,14 +3,14 @@
YEAR="$(date +%Y)"
DATE="$(date +%Y_%m_%d)"
[ ! -d "/Volumes/SD" ] && exit
[ ! -d "/Volumes/SD" ] && exit # Exit if SD Card isn't detected.
cd ~/Pictures/
mkdir -p $YEAR
mkdir -p $YEAR # Create year folder if doesn't exist (i.e. 2021)
cd ~/Pictures/$YEAR
mkdir $DATE
mkdir $DATE # Setup folder structure
mv /Volumes/SD/DCIM/* ~/Pictures/$YEAR/$DATE
mv /Volumes/SD/DCIM/* ~/Pictures/$YEAR/$DATE # Doing the actual move now.
exit
Loading…
Cancel
Save