mirror of
https://github.com/guezoloic/serverconfig.git
synced 2026-03-31 11:11:35 +00:00
Compare commits
2 Commits
ff99ffc8f7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91f403b696 | ||
| feb074b9e8 |
18
README.md
18
README.md
@@ -1,4 +1,4 @@
|
|||||||
<h1 align=center> ServerConfig </h1>
|
<h1 align=center> server-config </h1>
|
||||||
my own configuration management tool designed to quickly setup a server. It provides a simple way to deploy all my configuration needs.
|
my own configuration management tool designed to quickly setup a server. It provides a simple way to deploy all my configuration needs.
|
||||||
|
|
||||||
## Table of Content
|
## Table of Content
|
||||||
@@ -19,21 +19,15 @@ Ensure you have the following **programs** installed:
|
|||||||
- **aws**
|
- **aws**
|
||||||
- **docker**
|
- **docker**
|
||||||
|
|
||||||
## Paths
|
|
||||||
|
|
||||||
- /usr/local/bin/scripts
|
|
||||||
- /usr/local/bin/libs
|
|
||||||
- /var/log/serverconfig.log
|
|
||||||
- /etc/serverconfig
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/guezoloic/serverconfig.git
|
git clone https://github.com/guezoloic/server-config.git
|
||||||
cd serverconfig && \
|
cd serverconfig
|
||||||
chmod +x ./install.sh && ./install.sh
|
chmod +x ./install.sh
|
||||||
|
./install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Feel free to fork the repository, submit issues or pull requests.
|
Feel free to fork the repository, submit issues or pull requests.
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ if [[ "--install" == $1 ]]; then
|
|||||||
|
|
||||||
docker compose -f "$COMPOSE_FILE" up -d --force-recreate --remove-orphans &&
|
docker compose -f "$COMPOSE_FILE" up -d --force-recreate --remove-orphans &&
|
||||||
log_success "$COMPOSE_FILE is running."
|
log_success "$COMPOSE_FILE is running."
|
||||||
CMD="0 0 * * * PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /usr/bin/docker compose --env-file $ENV_FILE -f $PROJECT_DIR/docker-compose.yml pull -q && /usr/bin/docker compose --env-file $ENV_FILE -f $PROJECT_DIR/docker-compose.yml up -d --remove-orphans"
|
CMD="0 0 * * * PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /usr/bin/docker compose --env-file $ENV_FILE -f $PROJECT_DIR/docker-compose.yml pull -q && /usr/bin/docker compose --env-file $ENV_FILE -f $PROJECT_DIR/docker-compose.yml up -d --remove-orphans && /usr/bin/docker image prune -f"
|
||||||
add_crontab "$CMD"
|
add_crontab "$CMD"
|
||||||
else
|
else
|
||||||
log_error "no docker-compose.yml found at $PROJECT_DIR"
|
log_error "no docker-compose.yml found at $PROJECT_DIR"
|
||||||
|
|||||||
Reference in New Issue
Block a user