This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
## Alternative 1 | |
# Key server | |
alternative1() { | |
KEY_SRV=${KEY_SRV:-"keyserver.ubuntu.com"} | |
#GPG_KEY="7D8D0BF6" | |
GPG_KEY="ED444FF07D8D0BF6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Installing Laravel Framework on Ubuntu/Debian with Nginx and PHP-FPM 8.1 | |
git_laravel="https://github.com/laravel/laravel.git" | |
php_version="8.1" | |
apt update | |
# Install dependencies | |
apt -y install lsb-release apt-transport-https ca-certificates git wget curl unzip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
command rrdtool || sudo apt-get install rrdtool | |
command pngquant || sudo apt-get install pngquant | |
rrdtools_dir=/var/www/html/laravel/public/images/temp-sensor | |
rrdtools_db=cpu_temp_data.rrd | |
create(){ | |
rrdtool create $rrdtools_dir/$rrdtools_db \ | |
--start now \ |