-
Notifications
You must be signed in to change notification settings - Fork 0
Alex Arbuckle edited this page Sep 26, 2024
·
2 revisions
Encrypt and share passwords using a Discord bot. V8. Spring 2024.
The following notebook provides key information about the project, including its purpose, structure, guidelines, and algorithms, helping those who want to learn more by addressing these topics.
boot.sh
#!/bin/bash
externalDataMount="/dev/sda1";
externalBackupMount="/dev/sdc1";
projectPath="/home/highlander/PasCam";
# check if external data #
if [ -n "$externalDataMount" ]; then
sudo mount $externalDataMount $projectPath/data;
fi
# check if external backup #
if [ -n "$externalBackupMount" ]; then
sudo mount $externalBackupMount $projectPath/backup;
fi
if [ ! -d "$projectPath/data" ]; then
sudo mkdir $projectPath/data;
fi
if [ ! -d "$projectPath/backup" ]; then
sudo mkdir $projectPath/backup;
fi
sudo docker-compose -f $projectPath/docker-compose.yaml pull;
sudo docker-compose -f $projectPath/docker-compose.yaml up;
docker-compose.yml
version: '3.8'
services:
pascam:
image: lxrbckl/project-pascam:latest
environment:
- discordToken=
- guildId=
- channelId=
- applicationId=
- maxMembers=15
- dataFilePath=/data/
volumes:
- /path/on/host:/app/data
image
project-pascam:latest
variable
purpose of variable
autosave.sh
#!/bin/bash
sleepAmount=2;
externalDataMount=;
externalBackupMount=;
projectPath=;
# check if external data #
if [ -n "$externalDataMount" ]; then
sudo umount $projectPath/data;
sleep $sleepAmount;
sudo mount $externalDataMount $projectPath/data;
fi
# check if external backup #
if [ -n "$externalBackupMount" ]; then
sudo umount $projectPath/backup;
sleep $sleepAmount;
sudo mount $externalBackupMount $projectPath/backup;
fi
variable
required?
variable purpose
backup.sh
#!/bin/bash
sleepAmount=2;
externalBackupMount=;
projectPath=;
if [ -n "$externalBackupMount" ]; then
sudo cp -r $projectPath/data/* $projectPath/backup;
sudo umount $projectPath/backup;
sleep $sleepAmount;
sudo mount $externalBackupMount $projectPath/backup;
fi
variable
required?
variable purpose
autosave.sh
#!/bin/bash
projectPath=;
sudo rm -r $projectPath/data/*
sudo cp -r $projectPath/backup/* $projectPath/data/
variable
required?
variable purpose
This project is a heartfelt tribute to our beloved bunny, Tribble. Gone but not forgotten.