Skip to content

Commit 1cfdec1

Browse files
authored
pyhton fixes (#975)
1 parent 70cd89e commit 1cfdec1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,8 @@ run_main_script() {
687687
rm -f "${SCRIPTS}/${1}.php"
688688
elif curl_to_dir "${GITHUB_REPO}" "${1}.py" "$SCRIPTS"
689689
then
690-
python3.6 "${SCRIPTS}/${1}.py"
690+
install_if_not python3
691+
python3 "${SCRIPTS}/${1}.py"
691692
rm -f "${SCRIPTS}/${1}.py"
692693
else
693694
print_text_in_color "$IRed" "Downloading ${1} failed"
@@ -711,7 +712,8 @@ run_static_script() {
711712
rm -f "${SCRIPTS}/${1}.php"
712713
elif curl_to_dir "${STATIC}" "${1}.py" "$SCRIPTS"
713714
then
714-
python3.6 "${SCRIPTS}/${1}.py"
715+
install_if_not python3
716+
python3 "${SCRIPTS}/${1}.py"
715717
rm -f "${SCRIPTS}/${1}.py"
716718
else
717719
print_text_in_color "$IRed" "Downloading ${1} failed"
@@ -734,7 +736,8 @@ run_app_script() {
734736
rm -f "${SCRIPTS}/${1}.php"
735737
elif curl_to_dir "${APP}" "${1}.py" "$SCRIPTS"
736738
then
737-
python3.6 "${SCRIPTS}/${1}.py"
739+
install_if_not python3
740+
python3 "${SCRIPTS}/${1}.py"
738741
rm -f "${SCRIPTS}/${1}.py"
739742
else
740743
print_text_in_color "$IRed" "Downloading ${1} failed"

nextcloud_update.sh

-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,6 @@ fi
558558
start_if_stopped apache2
559559

560560
# Recover apps that exists in the backed up apps folder
561-
install_if_not python3.6
562561
run_static_script recover_apps
563562

564563
# Enable Apps

0 commit comments

Comments
 (0)