mirror of
https://github.com/lemeow125/ansible-playbooks.git
synced 2024-11-17 04:09:26 +08:00
Update scripts
This commit is contained in:
parent
79010ee462
commit
2ce5382f1f
3 changed files with 4 additions and 4 deletions
|
@ -49,7 +49,7 @@ function backup() {
|
||||||
docker_projects="/mnt/nvme/files/docker projects/"
|
docker_projects="/mnt/nvme/files/docker projects/"
|
||||||
|
|
||||||
# Sample Entry
|
# Sample Entry
|
||||||
backup "sample" "$docker_projects/sample_project" '--exclude "*.tmp"
|
# backup "sample" "$docker_projects/sample_project" '--exclude "*.tmp"
|
||||||
|
|
||||||
## Non-Docker Directories
|
## Non-Docker Directories
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
scripts_directory="/root/scripts/acme_scripts"
|
directory="/root/scripts/acme_scripts"
|
||||||
|
|
||||||
# Execute all .sh files in the directory
|
# Execute all .sh files in the directory
|
||||||
for script in "$scripts_directory"/*.sh; do
|
for script in "$directory"/*.sh; do
|
||||||
echo "--Executing $script--"
|
echo "--Executing $script--"
|
||||||
bash "$script"
|
bash "$script"
|
||||||
done
|
done
|
|
@ -6,7 +6,7 @@
|
||||||
docker_projects="/mnt/nvme/files/docker projects"
|
docker_projects="/mnt/nvme/files/docker projects"
|
||||||
|
|
||||||
# Sample Entry
|
# Sample Entry
|
||||||
cd "$docker_projects/sample_project" && docker-compose down && docker-compose up -d
|
# cd "$docker_projects/sample_project" && docker-compose down && docker-compose up -d
|
||||||
|
|
||||||
## Non-Docker Projects
|
## Non-Docker Projects
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue