8000 GitHub - Aljianja/script-utils: common script to update server
[go: up one dir, main page]

Skip to content

Aljianja/script-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script-utils

This repository contain usual script needed to install package or configure server

The setup_ssh_key_auth.sh script

The script takes these values as command-line arguments in the following format:

./setup_ssh_key_auth.sh <username> <server_ip> <email>.

Replace with your username, <server_ip> with your server's IP address or hostname, and with your email address. The script will generate an SSH key pair if it doesn't exist and copy the public key to the remote server. Finally, it will test the SSH key-based authentication and display a success message if everything is set up correctly.

The update_directory.sh script

The script now takes the following arguments:

./update_directory.sh <username> <server_ip> <directory1> <directory2> ...

This script connects to the server using SSH key-based authentication, navigates to the directories provided as arguments , performs a git fetch, git pull, and runs docker-compose with the specified production file.

The install_docker.sh script

This script installs Docker and Docker Compose on your Ubuntu server, enables and starts the Docker service, and prints the installed versions of Docker and Docker Compose. If you want to install a different version of Docker Compose, replace 1.29.2 in the script with the desired version.

About

common script to update server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0