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
// ==UserScript== | |
// @name Manual Import Select All | |
// @match https://sonarr.kirios.com.ar/* | |
// @match https://la.sonarr.kirios.com.ar/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
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 | |
# Checking it's running as sudo! | |
if [ "$EUID" -ne 0 ] | |
then echo "Please, run the installation as root or with sudo" | |
exit | |
fi | |
apt-get update |
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/sh | |
PROCESS=$1 | |
BASE_FOLDER=$2 | |
USER=$3 | |
sudo systemctl stop $PROCESS | |
sudo -u $USER mkdir /$BASE_FOLDER/data/$PROCESS | |
sudo -u $USER mkdir /$BASE_FOLDER/etc/$PROCESS |