setup.sh aktualisiert
This commit is contained in:
parent
ddfe7790d9
commit
446b4d4b4d
8
setup.sh
8
setup.sh
|
@ -19,7 +19,7 @@ fi
|
|||
# Überprüfen, ob npm installiert ist
|
||||
if ! command -v npm &> /dev/null; then
|
||||
echo "npm ist nicht installiert. Installiere npm automatisch..."
|
||||
sudo apt install -y npm # Oder passen Sie dies an Ihr System an
|
||||
sudo apt install -y npm
|
||||
fi
|
||||
|
||||
# Laden Sie die Umgebungsvariablen aus der .env-Datei
|
||||
|
@ -30,7 +30,7 @@ echo -e "Creating a new Node.js project..."
|
|||
echo -e "Project name: $PROJECT_NAME"
|
||||
echo -e "Version: 1.0.0"
|
||||
echo -e "Description: Node.js project"
|
||||
echo -e "Entry point: plex-bot.js" # Hier Dateinamen anpassen
|
||||
echo -e "Entry point: plex-bot.js"
|
||||
echo -e "Test command: "
|
||||
echo -e "Git repository: "
|
||||
echo -e "Keywords: "
|
||||
|
@ -46,7 +46,7 @@ sudo npm install ping
|
|||
sudo npm install node-telegram-bot-api
|
||||
sudo npm install js-yaml
|
||||
sudo npm install moment
|
||||
sudo npm install yaml # Änderung: 'yaml' anstelle von 'yml'
|
||||
sudo npm install yaml
|
||||
sudo npm install dotenv
|
||||
sudo npm install fs
|
||||
sudo npm install request
|
||||
|
@ -70,7 +70,7 @@ fi
|
|||
|
||||
# Erstellen Sie ein Startskript für den Bot
|
||||
echo -e "Creating start script..."
|
||||
echo -e "#!/bin/bash\n\npm2 start plex-bot.js" > start_bot.sh # Hier Dateinamen anpassen
|
||||
echo -e "#!/bin/bash\n\npm2 start plex-bot.js" > start_bot.sh
|
||||
chmod +x start_bot.sh
|
||||
|
||||
# Erstellen Sie ein Autostart-Skript für den Bot
|
||||
|
|
Loading…
Reference in New Issue