Skip to content

Commit

Permalink
Release v6.23 (#2784)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaIng authored May 12, 2019
2 parents b293ba8 + 5d9133a commit 4df0168
Show file tree
Hide file tree
Showing 58 changed files with 6,350 additions and 5,865 deletions.
4 changes: 2 additions & 2 deletions .conf/desktop/apps/opentyrian.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Type=Application
Name=OpenTyrian
Comment=An arcade-style shoot 'em up
Icon=/usr/local/games/opentyrian/linux/icons/tyrian-48.png
Icon=/usr/games/opentyrian/linux/icons/tyrian-48.png
Categories=Game;ArcadeGame;
Exec=/usr/local/games/opentyrian/run
Exec=/usr/games/opentyrian/run
Terminal=false
Binary file added .conf/desktop/lxqt/lxqt-buster.7z
Binary file not shown.
Binary file added .conf/desktop/lxqt/lxqt-stretch.7z
Binary file not shown.
3 changes: 0 additions & 3 deletions .conf/dps_114/apache.nextcloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,4 @@ Redirect permanent /ocs-provider /nextcloud/ocs-provider
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud

# Hard coding 128M OPCache size, only for /nextcloud, to suppress warning on nextcloud admin panel.
php_admin_value opcache.memory_consumption 128

</Directory>
5 changes: 1 addition & 4 deletions .conf/dps_114/lighttpd.nextcloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $HTTP["url"] =~ "^/nextcloud($|/)" {
# - Files
$HTTP["url"] =~ "^/nextcloud/(\.|autotest|occ|issue|indie|db_|console)" { url.access-deny = ("") }
# - Directory listing
dir-listing.active = "disable"
dir-listing.activate = "disable"
# - Cache control and security headers for static resources
$HTTP["url"] =~ "^/nextcloud/.*\.(css|js|woff2?|svg|gif)$" {
setenv.add-response-header += (
Expand All @@ -30,7 +30,4 @@ $HTTP["url"] =~ "^/nextcloud($|/)" {
)
}

# Solve OPcache settings warning on Nextcloud admin panel
setenv.add-environment += ( "PHP_ADMIN_VALUE" => "opcache.memory_consumption=128" )

}
2 changes: 0 additions & 2 deletions .conf/dps_114/nginx.nextcloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ location ^~ /nextcloud {
fastcgi_intercept_errors on;
# Disable on Jessie, because Jessie Nginx does not support this directive
#fastcgi_request_buffering off;
# Hard coding 128M OPCache size to suppress warning on Nextcloud admin panel.
fastcgi_param PHP_ADMIN_VALUE "opcache.memory_consumption=128";
}

location ~ ^\/nextcloud\/(?:updater|ocs-provider|ocm-provider)(?:$|\/) {
Expand Down
4 changes: 1 addition & 3 deletions .conf/dps_121/roonbridge.service
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
[Unit]
Description=Roon Bridge
Description=Roon Bridge (DietPi)
After=network.target sound.target

[Service]
Type=simple
User=root
Group=dietpi
Environment=ROON_DATAROOT=/mnt/dietpi_userdata/roon
Environment=ROON_ID_DIR=/mnt/dietpi_userdata/roon
Expand Down
3 changes: 1 addition & 2 deletions .conf/dps_36/squeezelite.service
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[Unit]
Description=squeezelite
Description=SqueezeLite (DietPi)

[Service]
Type=simple
ExecStart=/usr/bin/squeezelite -a 4096:1024:16:0 -C 5 -n 'DietPi-Squeezelite' -f /var/log/squeezelite.log

[Install]
Expand Down
2 changes: 1 addition & 1 deletion .conf/dps_47/lighttpd.owncloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $HTTP["url"] =~ "^/owncloud($|/)" {
# - Files
$HTTP["url"] =~ "^/owncloud/(\.|autotest|occ|issue|indie|db_|console)" { url.access-deny = ("") }
# - Directory listing
dir-listing.active = "disable"
dir-listing.activate = "disable"
# - Cache control and security headers for static resources
$HTTP["url"] =~ "^/owncloud/.+\.(css|js)" {
setenv.add-response-header += (
Expand Down
13 changes: 7 additions & 6 deletions .conf/dps_51/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/dash
#////////////////////////////////////
# DietPi OpenTyrian Run Script
#
Expand All @@ -12,15 +12,16 @@
# Usage:
# run
#////////////////////////////////////
FP_DIR='/usr/games/opentyrian'

#Xserver already running
if (($(pidof X) >= 0)); then
# Xserver already running
if pgrep Xorg &> /dev/null; then

/usr/local/games/opentyrian/opentyrian -t /usr/local/games/opentyrian/data
$FP_DIR/opentyrian -t $FP_DIR/data

#No X (init X server)
# No X (init X server)
else

xinit /usr/local/games/opentyrian/opentyrian -t /usr/local/games/opentyrian/data
xinit $FP_DIR/opentyrian -t $FP_DIR/data

fi
4 changes: 2 additions & 2 deletions .conf/dps_85/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ http {

# Upstream to abstract back-end connection(s) for PHP
upstream php {
server unix:/run/php/php7.0-fpm.sock;
server unix:/run/php/php7.3-fpm.sock;
}

# Set the mime-types via the mime.types external file
Expand All @@ -42,7 +42,7 @@ http {
# Click tracking!
access_log off;

# Hide nginx version
# Hide Nginx version
server_tokens off;

# ~2 seconds is often enough for HTML/CSS, but connections in
Expand Down
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ about: Create a report to help us improve
- Software title | (EG: Nextcloud)
- Was the software title installed freshly or updated/migrated?
- Can this issue be replicated on a fresh installation of DietPi?
- `dietpi-bugreport` ID | `sed -n 5p /DietPi/dietpi/.hw_model`
<!-- If you sent a "dietpi-bugreport", please paste the ID here -->
- Bug report ID | `sed -n 5p /DietPi/dietpi/.hw_model`

#### Steps to reproduce
<!-- Explain how to reproduce the issue -->
Expand Down
25 changes: 15 additions & 10 deletions .meta/dietpi-cloud-migration
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
#!/bin/bash

(( $UID )) && echo -e '[\e[31mFAILED\e[0m] Root privileges required. Please run the script with "sudo".\n' && exit 1
(( $UID )) && echo -e '[\e[31mFAILED\e[0m] Root privileges required. Please run the script with "sudo".' && exit 1
echo -e '[\e[32m OK \e[0m] Root privileges verified.'

! apt-get install -y rsync && echo -e '[\e[31mFAILED\e[0m] "rsync" install failed. Please check your internet connection, proper apt-get function or try to install it manually: "apt-get install -y rsync"\n' && exit 1
! apt-get install -y rsync && echo -e '[\e[31mFAILED\e[0m] "rsync" install failed. Please check your internet connection, proper apt-get function or try to install it manually: "apt install rsync"' && exit 1
echo -e '[\e[32m OK \e[0m] Successfully installed rsync.'

systemctl start mariadb &> /dev/null || systemctl start mysql &> /dev/null || { echo -e '[\e[31mFAILED\e[0m] Could not start MariaDB server. Aborting...'; exit 1; }
echo -e '[\e[32m OK \e[0m] Successfully started MariaDB.'

run_backup(){

fp_config="/var/www/$1/config/config.php"

echo '[ INFO ] Enabling maintenance mode...'
! sudo -u www-data php /var/www/$1/occ maintenance:mode --on && echo -e '[\e[31mFAILED\e[0m] Could not enable maintenance mode, please check running state of your instance and PHP functionality.\n' && exit 1
! sudo -u www-data php /var/www/$1/occ maintenance:mode --on && echo -e '[\e[31mFAILED\e[0m] Could not enable maintenance mode, please check running state of your instance and PHP functionality.' && exit 1

echo "[ INFO ] Scanning $fp_config for necessary information..."
local fp_datadir=$(grep -m1 "^[[:blank:]]*'datadirectory'" $fp_config | cut -d \' -f 4)
Expand All @@ -26,19 +29,19 @@ run_backup(){
- database password: $dbpass"

echo '[ INFO ] Backup database to data directory...'
! mysqldump -u"$dbuser" -h"$dbhost" -p"$dbpass" "$dbname" > "$fp_datadir"/dietpi-$1-database-backup.sql && echo -e '[\e[31mFAILED\e[0m] Database backup failed, please check state of your database server, check logs and in case repair table corruptions.\n' && exit 1
! mysqldump -u"$dbuser" -h"$dbhost" -p"$dbpass" "$dbname" > "$fp_datadir"/dietpi-$1-database-backup.sql && echo -e '[\e[31mFAILED\e[0m] Database backup failed, please check state of your database server, check logs and in case repair table corruptions.' && exit 1
echo -e "[\e[32m OK \e[0m] Successfully finished database backup to: $fp_datadir/dietpi-$1-database-backup.sql"

echo '[ INFO ] Backup installation folder to data directory...'
! rsync -aHp --delete /var/www/$1/ "$fp_datadir"/dietpi-$1-installation-backup && echo -e '[\e[31mFAILED\e[0m] "rsync" failed, please check for error reasons and try again.\n' && exit 1
! rsync -aHp --delete /var/www/$1/ "$fp_datadir"/dietpi-$1-installation-backup && echo -e '[\e[31mFAILED\e[0m] "rsync" failed, please check for error reasons and try again.' && exit 1
echo -e "[\e[32m OK \e[0m] Successfully finished installation backup to: $fp_datadir/dietpi-$1-installation-backup/"

if [[ $2 ]]; then

echo '[ INFO ] You provided an additional backup location. Moving data directory...'
[[ ! -d $2 ]] && echo -e "[\e[31mFAILED\e[0m] $2 is no existing directory, please check spelling and mount status of your desired backup drive.\n" && exit 1
[[ ! -d $2 ]] && echo -e "[\e[31mFAILED\e[0m] $2 is no existing directory, please check spelling and mount status of your desired backup drive." && exit 1

! rsync -aHp --delete "$fp_datadir"/ "$2" && echo -e '[\e[31mFAILED\e[0m] "rsync" failed, please check for error reasons and try again.\n' && exit 1
! rsync -aHp --delete "$fp_datadir"/ "$2" && echo -e '[\e[31mFAILED\e[0m] "rsync" failed, please check for error reasons and try again.' && exit 1
echo -e "[\e[32m OK \e[0m] Successfully synced data directory to: $2"

else
Expand All @@ -53,18 +56,20 @@ run_backup(){

### MAIN ###

if [[ -f /var/www/owncloud/config/config.php ]]; then
if [[ -f '/var/www/owncloud/config/config.php' ]]; then

echo '[ INFO ] ownCloud installation found, preparing backup...'
run_backup owncloud "$1"

fi

if [[ -f /var/www/nextcloud/config/config.php ]]; then
if [[ -f '/var/www/nextcloud/config/config.php' ]]; then

echo '[ INFO ] Nextcloud installation found, preparing backup...'
run_backup nextcloud "$1"

fi

[[ ! $fp_config ]] && echo -e '[\e[31mFAILED\e[0m] No ownCloud or Nextcloud instance found at /var/www/owncloud|nextcloud. Aborting...\n' && exit 1
[[ ! $fp_config ]] && echo -e '[\e[31mFAILED\e[0m] No ownCloud or Nextcloud instance found at /var/www/owncloud|nextcloud. Aborting...' && exit 1

exit 0
Loading

0 comments on commit 4df0168

Please sign in to comment.