sudo apt updateConfig file /etc/apache2/apache2.conf
sudo apt install apache2| #!/bin/bash | |
| # This script will backup your Coolify instance and move everything to a new server. Docker volumes, Coolify database, and ssh keys | |
| # 1. Script must run on the source server | |
| # 2. Have all the containers running that you want to migrate | |
| # Configuration - Modify as needed | |
| sshKeyPath="$HOME/.ssh/your_private_key" # Key to destination server | |
| destinationHost="server.example.com" |
| { | |
| "editor.formatOnSave": true, | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "eslint.enable": true, | |
| "eslint.alwaysShowStatus": true, | |
| "eslint.validate": ["javascript", "typescript"] | |
| } |
| { | |
| "arrowParens": "always", | |
| "embeddedLanguageFormatting": "auto", | |
| "endOfLine": "lf", | |
| "printWidth": 80, | |
| "proseWrap": "preserve", | |
| "quoteProps": "as-needed", | |
| "semi": true, | |
| "singleQuote": false, | |
| "tabWidth": 2, |
| # Adds the current branch to the bash prompt when the working directory is | |
| # part of a Git repository. Includes color-coding and indicators to quickly | |
| # indicate the status of working directory. | |
| git_branch() { | |
| # -- Finds and outputs the current branch name by parsing the list of | |
| # all branches | |
| # -- Current branch is identified by an asterisk at the beginning | |
| # -- If not in a Git repository, error message goes to /dev/null and |