Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.22 #2653

Merged
merged 264 commits into from
Mar 23, 2019
Merged

v6.22 #2653

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
264 commits
Select commit Hold shift + click to select a range
33abe47
add aria2 config option: rpc allow origin all
msongz Feb 11, 2019
4798faa
v6.22
Feb 11, 2019
1272bf9
v6.22
Feb 11, 2019
0a90f86
v6.22
MichaIng Feb 11, 2019
48c8d83
v6.22 #2538
MichaIng Feb 11, 2019
7f33448
Merge branch 'dev' into vpn
MichaIng Feb 11, 2019
03394b9
v6.22
MichaIng Feb 11, 2019
f967a54
v6.22
MichaIng Feb 12, 2019
92d9dca
v6.22
MichaIng Feb 12, 2019
7a27484
v6.22
MichaIng Feb 12, 2019
2c517cd
Merge branch 'dev' into vpn
MichaIng Feb 12, 2019
f39c641
v6.22
MichaIng Feb 12, 2019
79fbc11
Merge pull request #2539 from Fourdee/java
Fourdee Feb 12, 2019
c7b87ab
Merge branch 'dev' into vpn
Fourdee Feb 12, 2019
5f1a2ab
Merge pull request #2526 from Fourdee/vpn
Fourdee Feb 12, 2019
902bc21
v6.22
Feb 12, 2019
11b1a4b
v6.22
MichaIng Feb 13, 2019
27db001
v6.22
MichaIng Feb 13, 2019
95e29fc
v6.22
Fourdee Feb 13, 2019
537a290
v6.22
Feb 13, 2019
f303a30
v6.22
Feb 13, 2019
ee924aa
v6.22
MichaIng Feb 13, 2019
1d718e4
v6.22
MichaIng Feb 13, 2019
1467813
v6.22
Feb 13, 2019
ac7975c
Revert "v6.22"
Feb 13, 2019
bcb3806
v6.22
Feb 13, 2019
2ec69cf
v6.22
Feb 13, 2019
0ba42f7
Merge branch 'login' of https://github.com/Fourdee/DietPi into login
Feb 13, 2019
edd7125
Merge pull request #2541 from Fourdee/login
Fourdee Feb 13, 2019
d7df082
v6.22
Feb 13, 2019
923468e
v6.22
Feb 13, 2019
99dde7f
v6.22
MichaIng Feb 13, 2019
faf3550
v6.22
MichaIng Feb 13, 2019
2c5d01a
v6.22
MichaIng Feb 13, 2019
770deb5
v6.22
MichaIng Feb 13, 2019
484f347
v6.22
MichaIng Feb 13, 2019
d1dbf3c
v6.22
MichaIng Feb 14, 2019
1f98515
v6.22
MichaIng Feb 15, 2019
e59cc70
v6.22
MichaIng Feb 15, 2019
649574f
v6.22 (#2552)
MichaIng Feb 15, 2019
7c9d752
v6.22
Feb 15, 2019
c731293
v6.22
MichaIng Feb 15, 2019
82fe2a7
v6.22
Feb 15, 2019
a206e54
v6.22
Feb 15, 2019
a970f39
v6.22
Feb 15, 2019
ffc3eec
v6.22
Feb 15, 2019
dd91c40
Merge pull request #2544 from Fourdee/login
Fourdee Feb 15, 2019
b6bd3b0
v6.22
Feb 15, 2019
af53f73
v6.22
Feb 15, 2019
d88030a
v6.22
Feb 15, 2019
3ef39bb
v6.22
Feb 15, 2019
d447e35
v6.22
Feb 15, 2019
4113aa7
v6.22
Feb 15, 2019
47f1656
v6.22
Feb 15, 2019
0d2fede
v6.22
Feb 15, 2019
c8c0f49
v6.22
Feb 15, 2019
f575476
v6.22
Feb 15, 2019
d5f44d4
v6.22
Feb 15, 2019
0fc5e84
v6.22
Feb 15, 2019
74edffd
v6.22
Feb 15, 2019
f8d1b37
v6.22
Feb 15, 2019
62a6437
v6.22
Feb 15, 2019
d07c029
META | dietpi-cloud-migration: Minor coding and wording
MichaIng Feb 16, 2019
eb0f4cb
META | dietpi-fan_control: Fix G_CHECK_VALIDINT use + minor coding
MichaIng Feb 16, 2019
588b770
META | dietpi-survey_report: Add v6.21/22 support; Fix version sortin…
MichaIng Feb 16, 2019
511fc0d
v6.22
MichaIng Feb 16, 2019
cbf611e
v6.22
MichaIng Feb 16, 2019
d3459e5
v6.22
MichaIng Feb 16, 2019
3dc62bd
v6.22
MichaIng Feb 16, 2019
f38f324
v6.22
MichaIng Feb 16, 2019
80bb15d
v6.22
MichaIng Feb 17, 2019
da4492b
v6.22
MichaIng Feb 17, 2019
22a85eb
v6.22
MichaIng Feb 17, 2019
d95364f
v6.22
MichaIng Feb 17, 2019
a1ed33b
v6.22
MichaIng Feb 17, 2019
98a223c
v6.22
MichaIng Feb 17, 2019
0445816
v6.22
MichaIng Feb 17, 2019
8d4829f
v6.22 (#2525)
MichaIng Feb 17, 2019
6768f9a
v6.22 (#2562)
MichaIng Feb 17, 2019
7b8efed
Merge branch 'dev' into i-sabre-k2m
MichaIng Feb 17, 2019
347644a
Update to get correct CPU temp
lwqcz Feb 17, 2019
d17739e
Merge pull request #2559 from Fourdee/p7zip
Fourdee Feb 17, 2019
3820a33
Merge pull request #2555 from Fourdee/remove_last_dotfile
Fourdee Feb 17, 2019
843f403
Merge pull request #2563 from lwqcz/patch-1
Fourdee Feb 17, 2019
059595d
v6.22
MichaIng Feb 18, 2019
b277c8c
Merge pull request #2565 from Fourdee/start_kodi
Fourdee Feb 19, 2019
4e86b9e
v6.22
Feb 19, 2019
3d9d8b9
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Feb 19, 2019
c1cda33
v6.22
MichaIng Feb 20, 2019
9462a00
v6.22
MichaIng Feb 20, 2019
30768a4
v6.22
Feb 20, 2019
a3c06dc
Merge pull request #2550 from Fourdee/i-sabre-k2m
Fourdee Feb 20, 2019
816c850
v6.22 (#2570)
MichaIng Feb 22, 2019
4c6a3bc
v6.22 (#2574)
MichaIng Feb 22, 2019
8b6f46f
Gmediarender service starts with obtained IP
WilburWalsh Feb 23, 2019
01c7eed
v6.22
MichaIng Feb 23, 2019
65b34d8
v6.22
MichaIng Feb 23, 2019
37ea7b5
Merge pull request #2580 from WilburWalsh/dev
MichaIng Feb 23, 2019
221d300
v6.22
MichaIng Feb 23, 2019
98ffdf9
v6.22
MichaIng Feb 23, 2019
aef14bb
v6.22 (#2578)
MichaIng Feb 23, 2019
7376e44
v6.22 (#2582)
MichaIng Feb 23, 2019
9f7aaee
v6.22 (#2571)
MichaIng Feb 23, 2019
43c7822
v6.22
MichaIng Feb 23, 2019
6fd3d47
v6.22
MichaIng Feb 23, 2019
0f3d701
v6.22 (#2572)
MichaIng Feb 23, 2019
2cd6ac1
v6.22
MichaIng Feb 24, 2019
cbfc4e6
v6.22 (#2586)
MichaIng Feb 24, 2019
c323c6b
META | DietPi-Survey_report: Write to /tmp first, move to /var/www/su…
MichaIng Feb 25, 2019
c1c1ae4
v6.22
Feb 25, 2019
2f28e0e
META | README.md: Revert FeatHub link: https://github.com/feathub/fea…
MichaIng Feb 25, 2019
4516e16
META | Remove obsolete TESTING-BRANCH.md, all found links in code and…
MichaIng Feb 27, 2019
d1844f5
META | README.md: FeatHub page has switched to new GitHub owner
MichaIng Feb 27, 2019
f301916
v6.22 (#2594)
MichaIng Feb 28, 2019
ffbbe4f
v6.22
MichaIng Mar 1, 2019
9082c2b
v6.22
MichaIng Mar 1, 2019
02367b0
v6.22
MichaIng Mar 2, 2019
a214564
v6.22
Mar 2, 2019
3f28f9b
v6.22
MichaIng Mar 2, 2019
76be194
v6.22
MichaIng Mar 2, 2019
79e4029
v6.22
MichaIng Mar 2, 2019
4f854d6
v6.22
MichaIng Mar 2, 2019
74b5c14
v6.22
MichaIng Mar 2, 2019
22ec809
v6.22
MichaIng Mar 2, 2019
c3c3956
v6.22 (#2606)
MichaIng Mar 2, 2019
f317b42
v6.22
MichaIng Mar 2, 2019
8066e8d
v6.22
MichaIng Mar 2, 2019
09a2b4c
v6.22
MichaIng Mar 2, 2019
e2f0798
v6.22
MichaIng Mar 2, 2019
73d43c6
v6.22
MichaIng Mar 2, 2019
dc889af
v6.22
MichaIng Mar 2, 2019
7279965
v6.22
MichaIng Mar 3, 2019
1e7106c
v6.22
Mar 3, 2019
8633f62
v6.22
Mar 3, 2019
2350ee8
v6.22
MichaIng Mar 3, 2019
87c7a18
META | DietPi-Survey_report: Moved 2018 uploads to backup dir; Allows…
MichaIng Mar 3, 2019
ede949e
v6.22
MichaIng Mar 3, 2019
77922ab
v6.22
MichaIng Mar 4, 2019
b261d1b
v6.22
MichaIng Mar 4, 2019
496a544
v6.22
Mar 4, 2019
a3d4cff
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Mar 4, 2019
2ff0855
v6.22
Mar 4, 2019
28c6096
v6.22
Mar 4, 2019
10058f6
v6.22
Mar 4, 2019
1a9b581
v6.22
MichaIng Mar 4, 2019
ed3db98
v6.22
MichaIng Mar 4, 2019
f080a30
v6.22
MichaIng Mar 5, 2019
05240de
v6.22
MichaIng Mar 5, 2019
f126282
v6.22
MichaIng Mar 5, 2019
32af744
v6.22
MichaIng Mar 5, 2019
1961852
v6.22
MichaIng Mar 5, 2019
6b1c327
v6.22 (#2621)
MichaIng Mar 5, 2019
6231411
v6.22
MichaIng Mar 5, 2019
e070adf
v6.22
MichaIng Mar 5, 2019
72ac922
v6.22
MichaIng Mar 6, 2019
cdecf0a
v6.22
MichaIng Mar 6, 2019
a39412c
v6.22
Mar 7, 2019
b7f72e9
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Mar 7, 2019
bea6286
v6.22
Mar 7, 2019
60e1261
v6.22
MichaIng Mar 7, 2019
e13eab6
v6.22
MichaIng Mar 7, 2019
2d3fbeb
v6.22
MichaIng Mar 7, 2019
3a1a62d
v6.22
MichaIng Mar 8, 2019
7698dfc
v6.22
MichaIng Mar 8, 2019
2b3459e
v6.22
MichaIng Mar 8, 2019
849c412
v6.22
MichaIng Mar 8, 2019
523f65b
v6.22
MichaIng Mar 8, 2019
f816d11
v6.22
MichaIng Mar 9, 2019
e229ab3
v6.22
MichaIng Mar 9, 2019
0f72618
v6.22
MichaIng Mar 9, 2019
2b45228
v6.22
MichaIng Mar 9, 2019
130feb5
v6.22
MichaIng Mar 9, 2019
288584f
v6.22
MichaIng Mar 9, 2019
75d8dec
v6.22 (#2625)
MichaIng Mar 9, 2019
4318bb5
META | Feature request template: Add FeatHub suggestion
MichaIng Mar 9, 2019
d4dd7d6
META | Image request template: Add FeatHub suggestion
MichaIng Mar 9, 2019
b04563f
META | Software request template: Add FeatHub suggestion
MichaIng Mar 9, 2019
a0211a8
META | Typo
MichaIng Mar 9, 2019
616463a
META | Typo
MichaIng Mar 9, 2019
37f2c57
META | Typo
MichaIng Mar 9, 2019
04bff58
v6.22
MichaIng Mar 9, 2019
2d858a6
v6.22 (#2626)
MichaIng Mar 10, 2019
634851d
v6.22
MichaIng Mar 10, 2019
81281d3
v6.22
MichaIng Mar 10, 2019
dad12fc
v6.22
MichaIng Mar 10, 2019
eb1bff6
v6.22 (#2611)
MichaIng Mar 10, 2019
65f0ace
v6.22
MichaIng Mar 11, 2019
b37b39b
v6.22
MichaIng Mar 11, 2019
ec240df
v6.22
MichaIng Mar 11, 2019
2cacbfe
v6.22
MichaIng Mar 11, 2019
16d37ea
v6.22 (#2633)
MichaIng Mar 12, 2019
4196571
v6.22
Mar 12, 2019
0ac88f3
v6.22
Mar 12, 2019
9e9c765
v6.22
MichaIng Mar 12, 2019
70e0a66
v6.22
MichaIng Mar 12, 2019
a908c43
v6.22
MichaIng Mar 12, 2019
b431720
v6.22
MichaIng Mar 12, 2019
96bce8c
v6.22
MichaIng Mar 12, 2019
922463c
v6.22 (#2635)
MichaIng Mar 12, 2019
585c166
v6.22 (#2636)
MichaIng Mar 12, 2019
a3ad637
v6.22
MichaIng Mar 13, 2019
85baeec
v6.22
MichaIng Mar 13, 2019
68171ff
META | DietPi-Survey_report: Minor wording and code cleanup
MichaIng Mar 14, 2019
6a923c7
v6.22
MichaIng Mar 14, 2019
31f4900
v6.22
MichaIng Mar 15, 2019
9b4cd69
v6.22 (#2554)
MichaIng Mar 15, 2019
ebaa4b0
v6.22 (#2639)
MichaIng Mar 16, 2019
2b0a4da
v6.22
MichaIng Mar 16, 2019
813c212
v6.22
MichaIng Mar 16, 2019
f6fff7d
v6.22
MichaIng Mar 16, 2019
67161a7
v6.22
MichaIng Mar 16, 2019
14471cb
v6.22
MichaIng Mar 16, 2019
fd61fca
v6.22 (#2640)
MichaIng Mar 16, 2019
da4eefe
META | Add further links to the Additional Software list
MichaIng Mar 17, 2019
1a45858
Create myip.php
Mar 17, 2019
e538fc7
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Mar 17, 2019
509f95f
v6.22
Mar 17, 2019
07051e8
v6.22
Mar 18, 2019
fd79246
v6.22
Mar 18, 2019
8bcbed6
v6.22
Mar 18, 2019
5966cb9
v6.22
Mar 19, 2019
0619acc
v6.22
Mar 19, 2019
c8989dd
v6.22
Mar 19, 2019
d7daf9f
v6.22
Mar 19, 2019
ed8e4b7
v6.22
Mar 19, 2019
f44da31
v6.22
Mar 19, 2019
fa40a75
v6.22
MichaIng Mar 19, 2019
9ef89c9
v6.22
MichaIng Mar 19, 2019
ddf62f0
v6.22
MichaIng Mar 20, 2019
668d50d
v6.22
MichaIng Mar 20, 2019
2225fb6
v6.22
MichaIng Mar 20, 2019
12bbd31
v6.22
MichaIng Mar 21, 2019
5b0a74b
v6.22
MichaIng Mar 21, 2019
c88095f
v6.22
MichaIng Mar 21, 2019
33669ef
v6.22
MichaIng Mar 21, 2019
fe001fc
v6.22
MichaIng Mar 21, 2019
76f7609
v6.22
MichaIng Mar 21, 2019
ffe7c16
v6.22
MichaIng Mar 21, 2019
22b7431
v6.22
MichaIng Mar 21, 2019
9490218
v6.22
MichaIng Mar 21, 2019
fe434af
v6.22
MichaIng Mar 21, 2019
523df58
v6.22 (#2643)
MichaIng Mar 21, 2019
3dbaf42
v6.22
MichaIng Mar 21, 2019
28f2c25
v6.22
Mar 22, 2019
f1e2614
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Mar 22, 2019
889e205
v6.22
Mar 22, 2019
cd2c6eb
v6.22 (#2649)
Fourdee Mar 22, 2019
53eaebf
v6.22 (#2648)
MichaIng Mar 22, 2019
17c7553
v6.22
MichaIng Mar 23, 2019
a3e80fe
v6.22 (#2654)
MichaIng Mar 23, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .conf/dps_114/apache.nextcloud.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Based on: https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#apache-web-server-configuration

# Redirect OCM/OCS provider requests to Nextcloud endpoint:
Redirect permanent /ocm-provider /nextcloud/ocm-provider
Redirect permanent /ocs-provider /nextcloud/ocs-provider

<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
Expand Down
6 changes: 6 additions & 0 deletions .conf/dps_114/lighttpd.nextcloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# - Apache: https://github.com/nextcloud/server/blob/master/.htaccess
# - Nginx: https://docs.nextcloud.com/server/stable/admin_manual/installation/nginx.html

# Redirect OCM/OCS provider requests to Nextcloud endpoint:
url.redirect += (
"^/ocm-provider" => "/nextcloud/ocm-provider",
"^/ocs-provider" => "/nextcloud/ocs-provider"
)

$HTTP["url"] =~ "^/nextcloud($|/)" {

# Hardening
Expand Down
21 changes: 13 additions & 8 deletions .conf/dps_114/nginx.nextcloud.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Based on: https://docs.nextcloud.com/server/stable/admin_manual/installation/nginx.html
# Based on: https://docs.nextcloud.com/server/stable/admin_manual/installation/nginx.html#nextcloud-in-a-subdir-of-nginx

# Redirect OCM/OCS provider requests to Nextcloud endpoint:
location ~ ^\/(?:ocm-provider|ocs-provider).* {
rewrite ^ /nextcloud$request_uri;
}

location ^~ /nextcloud {

Expand Down Expand Up @@ -34,15 +39,15 @@ location ^~ /nextcloud {
rewrite ^ /nextcloud/index.php$request_uri;
}

location ~ ^/nextcloud/(?:build|tests|config|lib|3rdparty|templates|data)/ {
location ~ ^\/nextcloud\/(?:build|tests|config|lib|3rdparty|templates|data)\/ {
deny all;
}
location ~ ^/nextcloud/(?:\.|autotest|occ|issue|indie|db_|console) {
location ~ ^\/nextcloud\/(?:\.|autotest|occ|issue|indie|db_|console) {
deny all;
}

location ~ ^/nextcloud/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
location ~ ^\/nextcloud\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|ocm-provider\/.+)\.php(?:$|\/) {
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
Expand All @@ -59,14 +64,14 @@ location ^~ /nextcloud {
fastcgi_param PHP_ADMIN_VALUE "opcache.memory_consumption=128";
}

location ~ ^/nextcloud/(?:updater|ocs-provider)(?:$|/) {
location ~ ^\/nextcloud\/(?:updater|ocs-provider|ocm-provider)(?:$|\/) {
try_files $uri/ =404;
index index.php;
}

# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ \.(?:css|js|woff|svg|gif)$ {
location ~ ^\/nextcloud\/.+[^\/]\.(?:css|js|woff2?|svg|gif)$ {
try_files $uri /nextcloud/index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended
Expand All @@ -83,7 +88,7 @@ location ^~ /nextcloud {
access_log off;
}

location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
location ~ ^\/nextcloud\/.+[^\/]\.(?:png|html|ttf|ico|jpg|jpeg)$ {
try_files $uri /nextcloud/index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
Expand Down
4 changes: 2 additions & 2 deletions .conf/dps_128/mpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ pid_file "/var/run/mpd/pid"
state_file "/mnt/dietpi_userdata/.mpd_cache/state"
sticker_file "/mnt/dietpi_userdata/.mpd_cache/sticker.sql"

user "mpd"
group "dietpi"
#user "mpd" #Set via service to allow for mpd user to use assigned groups "audio" and "dietpi"
#group "dietpi" #Set via service to allow for mpd user to use assigned groups "audio" and "dietpi"

bind_to_address "localhost"

Expand Down
42 changes: 24 additions & 18 deletions .conf/dps_6/xorg_xu4.conf
Original file line number Diff line number Diff line change
@@ -1,30 +1,36 @@
Section "Device"
# X.Org X server configuration file for xf86-video-armsoc-odroid

Identifier "Mali-Fbdev"
Section "Device"
Identifier "Mali-Fbdev"
Driver "armsoc"
Option "fbdev" "/dev/fb0"
Option "Debug" "false"
Option "fbdev" "/dev/fb0"
Option "Debug" "false"
Option "DPMS" "false"
Option "Fimg2DExa" "true"
Option "DRI2" "true"
Option "DRI2_PAGE_FLIP" "false"
# Option "Fimg2DExaSolid" "false"
# Option "Fimg2DExaCopy" "false"
Option "Fimg2DExaComposite" "true"
Option "SWcursorLCD" "false"

Option "NoFlip" "true"
Option "NoHardwareMouse" "true"
Option "NoG2D" "false"
EndSection

Section "Screen"

Identifier "Default Screen"
Device "Mali-Fbdev"
DefaultDepth 24

Identifier "Default Screen"
Device "Mali-Fbdev"
DefaultDepth 24
EndSection

Section "DRI"

Mode 0666
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS" "Off"
EndSection

## disable automatic HDMI turn off
Section "ServerLayout"
Identifier "DefaultLayout"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
5 changes: 4 additions & 1 deletion .conf/dps_65/netdata.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
[Unit]
Description=Real time performance monitoring

# Pull in non-static network-online.target
Wants=network-online.target

# append here other services you want netdata to wait for them to start
After=network-online.target httpd.service squid.service nfs-server.service mysqld.service mysql.service named.service postfix.service chronyd.service
After=network-online.target httpd.service squid.service nfs-server.service mysqld.service mysql.service mariadb.service named.service postfix.service chronyd.service

[Service]
Type=simple
Expand Down
2 changes: 1 addition & 1 deletion .conf/dps_85/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ http {

charset utf-8;

# + Nginx - To avoid 2MB upload error: https://github.com/Fourdee/DietPi/issues/546
# + Nginx - To avoid 2MB upload error: https://github.com/MichaIng/DietPi/issues/546
client_max_body_size 2000M;

# Upstream to abstract back-end connection(s) for PHP
Expand Down
6 changes: 0 additions & 6 deletions .conf/dps_85/nginx.default
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ server {
try_files $uri $uri/ =404;
}

error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www;
}

location ~ \.php(?:$|/) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
Expand Down
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ about: Suggest an idea for this project
#### Additional context
<!-- Add any other context or screenshots about the feature request here.-->
- ...

#### Vote for this feature on FeatHub: https://feathub.com/MichaIng/DietPi/
<!-- Optional: Add your request to our FeatHub page as well and replace the above link accordinly.-->
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/image_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ about: Suggest a new SBC to be added to the offial support and image list of Die
#### If not, are there install instructions for Debian available?
<!-- EG: https://github.com/drtyhlpr/rpi23-gen-image/https://github.com/Debian/raspi3-image-spec -->
- ...

#### Vote for this iamge on FeatHub: https://feathub.com/MichaIng/DietPi/
<!-- Optional: Add your request to our FeatHub page as well and replace the above link accordinly.-->
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/software_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ about: Suggest a software title to be added to DietPi-Software
#### Are you willing to help maintaining the software installation, e.g. in case of needed setup changes due to updates etc.? This is not needed, but could speed up our decision to implement it, as man power is always a topic :wink:.
<!-- EG: Yes, I could help out with this, e.g. if I experience issues. / Sorry, I am totally unexperienced in bash coding. -->
- ...

#### Vote for this software on FeatHub: https://feathub.com/MichaIng/DietPi/
<!-- Optional: Add your request to our FeatHub page as well and replace the above link accordinly.-->
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!--
Before submitting a pull request:
- Please ensure the target branch is "dev" (active development): https://github.com/Fourdee/DietPi/tree/dev
- Please ensure the target branch is "dev" (active development): https://github.com/MichaIng/DietPi/tree/dev
- Please ensure changes have been tested and verified functional.
-->
**Status**: WIP | Testing | Ready | ?
- [ ] Example task 1

**Reference**: https://github.com/Fourdee/DietPi/issues/XXXX
**Reference**: https://github.com/MichaIng/DietPi/issues/XXXX

**Commit list/description**:
<!--
Expand Down
47 changes: 19 additions & 28 deletions .meta/dietpi-cloud-migration
Original file line number Diff line number Diff line change
@@ -1,79 +1,70 @@
#!/bin/bash

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

apt-get install -y rsync
(( $? )) && echo -e '[\e[31mFAILED\e[0m] Installation of rsync 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-get install -y rsync"\n' && exit 1
echo -e '[\e[32m OK \e[0m] Successfully installed rsync.'

run_backup(){

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

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

echo "[ INFO ] Scanning $fp_config for necessary information..."
[[ ! -f $fp_config ]] && echo -e "[\e[31mFAILED\e[0m] File $fp_config not found, please check your installation.\n" && exit 1
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

local fp_datadir=$(grep -m1 "^[[:blank:]]*'datadirectory'" $fp_config | mawk '{print $3}' | sed "s/[',]//g")
local dbname=$(grep -m1 "^[[:blank:]]*'dbname'" $fp_config | mawk '{print $3}' | sed "s/[',]//g")
local dbhost=$(grep -m1 "^[[:blank:]]*'dbhost'" $fp_config | mawk '{print $3}' | sed "s/[',]//g")
local dbuser=$(grep -m1 "^[[:blank:]]*'dbuser'" $fp_config | mawk '{print $3}' | sed "s/[',]//g")
local dbpass=$(grep -m1 "^[[:blank:]]*'dbpassword'" $fp_config | mawk '{print $3}' | sed "s/[',]//g")
echo "[ INFO ] Scanning $fp_config for necessary information..."
local fp_datadir=$(grep -m1 "^[[:blank:]]*'datadirectory'" $fp_config | cut -d \' -f 4)
local dbname=$(grep -m1 "^[[:blank:]]*'dbname'" $fp_config | cut -d \' -f 4)
local dbhost=$(grep -m1 "^[[:blank:]]*'dbhost'" $fp_config | cut -d \' -f 4)
local dbuser=$(grep -m1 "^[[:blank:]]*'dbuser'" $fp_config | cut -d \' -f 4)
local dbpass=$(grep -m1 "^[[:blank:]]*'dbpassword'" $fp_config | cut -d \' -f 4)
echo -e " - data directory: $fp_datadir
- database name: $dbname
- database hostname: $dbhost
- database username: $dbuser
- 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 seems to have failed. 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.\n' && 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, 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.\n' && 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 directory, please check spelling and mount status of your desired backup location.\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.\n" && exit 1

rsync -aHp --delete "$fp_datadir"/ "$2"
(( $? )) && echo -e '[\e[31mFAILED\e[0m] Rsync failed, 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.\n' && exit 1
echo -e "[\e[32m OK \e[0m] Successfully synced data directory to: $2"

else

echo '[ INFO ] You did not provide an additional backup location. We assume your data directory is already on an external drive, ready for migration? If not, move it there or rerun this script, providing the external backup location as argument.'
echo '[ INFO ] You did not provide an additional backup location. We assume your data directory is already on an external drive, ready for migration? If not, move it there, or, rerun this script with the desired external backup path as argument.'

fi

echo -e "[\e[32m OK \e[0m] Backup successfully completed. On destination server, please move the whole data directory to the one, provided within /DietPi/dietpi.txt (default: \"/mnt/dietpi_userdata/$1_data\"), or create a symlink from there. On reinstallation, DietPi-Software will check this location for backups and in case automatically restore them."
echo -e "[\e[32m OK \e[0m] Backup successfully completed. On destination server, please move the whole data directory to the one, provided within /DietPi/dietpi.txt (default: \"/mnt/dietpi_userdata/$1_data\"), or create a symlink from there. On reinstall, DietPi-Software will check this location for backups and in case automatically restore them."

}

### MAIN ###

[[ ! -f /DietPi/dietpi/.installed ]] && echo -e '[\e[31mFAILED\e[0m] No proper DietPi installation found or DietPi-RamDisk is not running. Please ensure you are executing this script from a functional DietPi system and "dietpi-ramdisk" is up.\n' && exit 1

if grep -q 'aSOFTWARE_INSTALL_STATE\[47\]=2' /DietPi/dietpi/.installed; then
if [[ -f /var/www/owncloud/config/config.php ]]; then

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

fi

if grep -q 'aSOFTWARE_INSTALL_STATE\[114\]=2' /DietPi/dietpi/.installed; 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 installation found. Please verify that it was installed via dietpi-software, in case reinstall it, non of your existing data/settings will be overwritten.\n" && exit 1
[[ ! $fp_config ]] && echo -e '[\e[31mFAILED\e[0m] No ownCloud or Nextcloud instance found at /var/www/owncloud|nextcloud. Aborting...\n' && exit 1
Loading