• If you need help or want to discuss things, you now can also join us on our Discord Server!
Sinusbot Installer Script

EN Sinusbot Installer Script 1.5

No permission to download

Qhiliqq

Donor++
is awesome!
is awesome!
Insider
Hi @Qhiliqq

This script needs some tweaks, I tweaked the one I downloaded for future installations but I think, you should also tweak yours and update it :

1. check if ntp is already installed and running, instead of forcing Installation and ruining the config
Code:
...
689      timedatectl set-ntp yes
why?
setting this to yes means that you want to use timesyncd "see my post above for the error that this causes when enabled with ntp"

2. systemd / init.d
Code:
95    if [[ $(command -v systemctl) == "" ]]; then
96     USE_SYSTEMD=false
97    fi
wouldn't it be weise to ask what startup method to choose even if systemd is available? since you set up USE_SYSTEMD=true in line 9 it will be the default one.

3. Cron
918 echo "0 0 * * * $SINUSBOTUSER $LOCATION/sinusbot -update >/dev/null" >>/etc/cron.d/sinusbot
There is no flag such as -uptade and > /dev/null 2>&1 would be a proper redirection.

930 echo "0 0 * * * $SINUSBOTUSER youtube-dl -U --restrict-filename >/dev/null" >>/etc/cron.d/ytdl
same issue with redirection and this will return a youtube-dl: command not found "absolute path". Cron clears the whole environment, so there is 2 options:
a. using PATH=/usr/local/bin/ because youtube-dl is in this directory
930 echo "PATH=/usr/bin/local\n0 0 * * * $SINUSBOTUSER youtube-dl -U --restrict-filename > /dev/null 2>&1" >>/etc/cron.d/ytdl
or
930 echo "SHELL=/bin/sh\nPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\n0 0 * * * $SINUSBOTUSER youtube-dl -U --restrict-filename > /dev/null 2>&1" >>/etc/cron.d/ytdl

b. as in sinusbot cron
"echo 0 0 * * * $SINUSBOTUSER /usr/local/bin/youtube-dl -U --restrict-filename > /dev/null 2>&1" >>/etc/cron.d/ytdl

Regards
Hey nice! Could you push that via Github?
This would be easier :)
 
Generated README_installer.txt!
Deleted /tmp/.sinusbot.lock
Deleted /tmp/.X11-unix/X40
Starting the SinusBot. For first time.
2018/06/12 04:32:49 X [MAIN] Starting up fake x-server...
2018/06/12 04:32:49 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin advertising.js
2018/06/12 04:32:49 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin alonemode.js
2018/06/12 04:32:49 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin bookmark.js
2018/06/12 04:32:49 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin followme.js
2018/06/12 04:32:49 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin norecording.js
2018/06/12 04:32:49 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin rememberChannel.js
2018/06/12 04:32:49 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin welcome.js
Failed to read password, try a reinstall again.
[email protected]:~#



/ __|_ _| \| | | | / __| _ )/ _ \_ _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|

Version: 0.13.37-9791176
(C) 2013-2017 Michael Friese. All rights reserved.

2018/06/12 04:35:39 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin advertising.js
2018/06/12 04:35:39 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin alonemode.js
2018/06/12 04:35:39 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin bookmark.js
2018/06/12 04:35:39 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin followme.js
2018/06/12 04:35:39 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin norecording.js
2018/06/12 04:35:39 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin rememberChannel.js
2018/06/12 04:35:39 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin welcome.js
a manual update is required
Error on line 1090. Report this to the author at https://forum.sinusbot.com/threads/sinusbot-installer-script.1200/ only. Not a PN or a bad review, cause this is an error of your system not of the installer script.
Command which failed was: " su -c "$LOCATION/sinusbot" $SINUSBOTUSER". Please try to execute it manually and attach the output to the bug report in the forum thread.
[email protected]:~#



I fix, now? Why
 
Could not find TeamSpeak 3 Client: stat /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: no such file or directory
Sanity checks failed, unable to run. Please read the installation-guide carefully and contact support if necessary.
Error on line 1090. Report this to the author at https://forum.sinusbot.com/threads/sinusbot-installer-script.1200/ only. Not a PN or a bad review, cause this is an error of your system not of the installer script.
Command which failed was: " su -c "$LOCATION/sinusbot" $SINUSBOTUSER". Please try to execute it manually and attach the output to the bug report in the forum thread.

Please help me!
 
Moin,

das Script funktioniert super, nimmt einem viel Arbeit ab!
Habe gerade nach einem crash den Bot neu instaliert.
Nur service sinusbot (start|stop etc...) funktioniert nur als User root.
Ist das gewollt?
ich meine, vorher ging das
bin per Putty als der User angemeldet der Sinusbot ausführt.

LG
 

Similar threads