|
725 | 725 | print_text_in_color "$IGreen" "Disabling maintenance:mode..."
|
726 | 726 | sudo -u www-data php "$NCPATH"/occ maintenance:mode --off
|
727 | 727 |
|
| 728 | +# Make all previous files executable |
| 729 | +print_text_in_color "$ICyan" "Finding all executable files in $NC_APPS_PATH" |
| 730 | +find_executables="$(find $NC_APPS_PATH -type f -executable)" |
| 731 | + |
728 | 732 | # Update all Nextcloud apps
|
729 | 733 | if [ "${CURRENTVERSION%%.*}" -ge "15" ]
|
730 | 734 | then
|
@@ -770,11 +774,6 @@ then
|
770 | 774 | systemctl restart notify_push.service
|
771 | 775 | fi
|
772 | 776 |
|
773 |
| -# Make all previous files executable |
774 |
| -print_text_in_color "$ICyan" "Finding all executable files in $NC_APPS_PATH" |
775 |
| -find_executables="(find $NC_APPS_PATH -type f -executable)" |
776 |
| -export "{$find_executables}" |
777 |
| - |
778 | 777 | if [ -f /tmp/minor.version ]
|
779 | 778 | then
|
780 | 779 | NCBAD=$(cat /tmp/minor.version)
|
@@ -1179,13 +1178,6 @@ then
|
1179 | 1178 | fi
|
1180 | 1179 | fi
|
1181 | 1180 |
|
1182 |
| -# Make all files in executable again |
1183 |
| -for executable in $find_executables |
1184 |
| -do |
1185 |
| - chmod +x "$executable" |
1186 |
| - unset "$find_executables" |
1187 |
| -done |
1188 |
| - |
1189 | 1181 | # Start Apache2
|
1190 | 1182 | start_if_stopped apache2
|
1191 | 1183 |
|
@@ -1260,6 +1252,12 @@ then
|
1260 | 1252 | mkdir -p "$VMLOGS"
|
1261 | 1253 | fi
|
1262 | 1254 |
|
| 1255 | +# Make all files in executable again |
| 1256 | +for executable in $find_executables |
| 1257 | +do |
| 1258 | + chmod +x "$executable" |
| 1259 | +done |
| 1260 | + |
1263 | 1261 | CURRENTVERSION_after=$(nextcloud_occ status | grep "versionstring" | awk '{print $3}')
|
1264 | 1262 | if [[ "$NCVERSION" == "$CURRENTVERSION_after" ]] || [ -n "$PRERELEASE_VERSION" ]
|
1265 | 1263 | then
|
|
0 commit comments