Skip to content

Instantly share code, notes, and snippets.

View gncabrera's full-sized avatar
👻
Working as always!

Gustavo Cabrera gncabrera

👻
Working as always!
View GitHub Profile
#!/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
#!/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
// ==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';