Skip to content
Snippets Groups Projects
ddInstall.sh 2.03 KiB
Newer Older
  • Learn to ignore specific revisions
  • Weilbyte's avatar
    Weilbyte committed
    #!/bin/bash
    
    Say () {
        printf "\e[1;34m $1  \e[0m \n";
    }
    
    DotSay () {
        printf "[\e[1;34m*\e[0m] \e[0;34m $1  \e[0m \n"; 
    }
    
    
    Say '[PVE Discord Dark UI Theme Installer]'
    Say 'Internet connection required to download files'
    Say '>Press any key to begin installation'
    read -p ""
    Say ' '
    DotSay 'Backing up index template file'
    cp /usr/share/pve-manager/index.html.tpl /usr/share/pve-manager/index.html.tpl.bak 
    DotSay 'Applying stylesheet..'
    
    Weilbyte's avatar
    Weilbyte committed
    wget https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/serverside/style.css &> /dev/null 
    
    Weilbyte's avatar
    Weilbyte committed
    echo "<style type='text/css' media='screen'>" >> /usr/share/pve-manager/index.html.tpl
    
    Weilbyte's avatar
    Weilbyte committed
    cat style.css >> /usr/share/pve-manager/index.html.tpl
    
    Weilbyte's avatar
    Weilbyte committed
    echo "</style>" >> /usr/share/pve-manager/index.html.tpl
    
    Weilbyte's avatar
    Weilbyte committed
    rm style.css
    
    Weilbyte's avatar
    Weilbyte committed
    DotSay 'Applied stylesheet!'
    DotSay 'Downloading images..'
    cd /usr/share/pve-manager/images
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_cephblurp.png &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_cephwhite.png &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_icon-cpu.png &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_icon-hdd.png &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_icon-ram.png &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_icon-swap.png &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_logo.png &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_mini-bottom.png &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_mini-top.png &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_readme &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_tool-sprites.png &> /dev/null 
    wget https://github.com/Weilbyte/PVEDiscordDark/raw/master/images/dd_trigger.png &> /dev/null 
    DotSay 'Downloaded images!'
    Say ''
    Say 'Installation finished!'
    Say 'o7'