@@ -12,8 +12,8 @@ SKIP_WEBSERVER=false
1212SKIP_PHP=false
1313SKIP_NODE=false
1414SKIP_PYTHON=false
15- SKIP_GUNICORN=false
16- SKIP_NGROK=false
15+ SKIP_GUNICORN=true
16+ SKIP_NGROK=true
1717PHOTOBOOTH_FOUND=false
1818INSTALLFOLDERPATH=" "
1919PHOTOBOOTH_SUBFOLDER=" "
@@ -23,10 +23,8 @@ WEBBROWSER="unknown"
2323
2424# GitHub
2525GIT_INSTALLED=false
26- GIT_REPO_URL=" https://github.com/frogro/photobooth.git"
27- GIT_REMOTE_NAME=" origin"
28- BRANCH=" feature/sumup-payment"
29- REMOTE_BRANCH_API=" "
26+ BRANCH=" dev"
27+ REMOTE_BRANCH_API=" https://api.github.com/repos/PhotoboothProject/photobooth/branches/${BRANCH} "
3028REMOTE_BRANCH_SHA=" "
3129
3230# OS environment
@@ -184,21 +182,21 @@ function error() {
184182
185183function print_logo() {
186184 local logo="
187- %@@@@.
188- @@ @@*
189- @@@@@@@@@@@@@@@@@@@@@@
190- @@%%%%%%%%%%%%%%%%%%%%%@
191- @@ @@@@@@ @@
192- @@ @@ @@ @@
193- @@ @@ @@ @@
194- @@ @@ @@ @@
195- @@ @@ @@ @@
196- @@ @@@@@@ @@
197- @@%%%%%%%%%%%%%%%%%%%%%@
198-
199- P H O T O B O O T H
200-
201- @@%%%%%%%%%%%%%%%%%%%%%@
185+ %@@@@.
186+ @@ @@*
187+ @@@@@@@@@@@@@@@@@@@@@@
188+ @@%%%%%%%%%%%%%%%%%%%%%@
189+ @@ @@@@@@ @@
190+ @@ @@ @@ @@
191+ @@ @@ @@ @@
192+ @@ @@ @@ @@
193+ @@ @@ @@ @@
194+ @@ @@@@@@ @@
195+ @@%%%%%%%%%%%%%%%%%%%%%@
196+
197+ P H O T O B O O T H
198+
199+ @@%%%%%%%%%%%%%%%%%%%%%@
202200"
203201
204202 if [ " $SILENT " = true ]; then
@@ -216,28 +214,28 @@ function show_help() {
216214 echo " "
217215 echo " Adjust your setup for Photobooth. Available options:"
218216 echo " "
219- echo " --branch=<branch> Specify the Git branch to use for installation or updates."
220- echo " --php=<version> Set the PHP version for the setup (e.g., --php=8.3)."
221- echo " --silent Run the Photobooth Setup Wizard in silent mode"
222- echo " for automated installation or updates."
223- echo " --username=\" <username>\" Required if --silent is used."
224- echo " Provide a username for installation or updates."
225- echo " --raspberry Skip automatic Raspberry Pi detection and enable Raspberry Pi specific configuration."
226- echo " --wayland Skip automatic Wayland detection and enable Wayland configuration."
227- echo " --update Requires --silent to update Photobooth if installed already."
228- echo " --skip-webserver Skip web server setup"
229- echo " (if already configured or e.g. Nginx is used as Webserver)."
230- echo " --skip-php Skip PHP installation"
231- echo " (if already configured for used Webserver)."
232- echo " --skip-node Skip Node.js and npm installation"
233- echo " (if already installed as required)."
234- echo " --skip-python Skip python3 installation"
235- echo " (if already installed as required)."
236- echo " --skip-gunicorn Skip Gunicorn installation"
237- echo " (for SumUp webhook service)."
238- echo " --skip-ngrok Skip ngrok installation"
239- echo " (for SumUp webhook tunnel)."
240- echo " --skip-auto-update Skip automatic updates for Photobooth Setup Wizard."
217+ echo " --branch=<branch> Specify the Git branch to use for installation or updates."
218+ echo " --php=<version> Set the PHP version for the setup (e.g., --php=8.3)."
219+ echo " --silent Run the Photobooth Setup Wizard in silent mode"
220+ echo " for automated installation or updates."
221+ echo " --username=\" <username>\" Required if --silent is used."
222+ echo " Provide a username for installation or updates."
223+ echo " --raspberry Skip automatic Raspberry Pi detection and enable Raspberry Pi specific configuration."
224+ echo " --wayland Skip automatic Wayland detection and enable Wayland configuration."
225+ echo " --update Requires --silent to update Photobooth if installed already."
226+ echo " --skip-webserver Skip web server setup"
227+ echo " (if already configured or e.g. Nginx is used as Webserver)."
228+ echo " --skip-php Skip PHP installation"
229+ echo " (if already configured for used Webserver)."
230+ echo " --skip-node Skip Node.js and npm installation"
231+ echo " (if already installed as required)."
232+ echo " --skip-python Skip python3 installation"
233+ echo " (if already installed as required)."
234+ echo " --skip-gunicorn Skip Gunicorn installation"
235+ echo " (for SumUp webhook service)."
236+ echo " --skip-ngrok Skip ngrok installation"
237+ echo " (for SumUp webhook tunnel)."
238+ echo " --skip-auto-update Skip automatic updates for Photobooth Setup Wizard."
241239 echo " "
242240 echo " Examples:"
243241 echo " $0 --silent --branch=dev --php=8.3 --username=\" photobooth\" --update"
@@ -302,7 +300,7 @@ function is_wayland_env() {
302300function install_system_icon() {
303301 local icon_dir=" /usr/share/icons/hicolor/scalable/apps"
304302 local icon_file=" $icon_dir /photobooth.svg"
305- local icon_url=" https://github.com/frogro /photobooth/raw/refs/heads/${BRANCH} /resources/img/favicon.svg"
303+ local icon_url=" https://github.com/PhotoboothProject /photobooth/raw/refs/heads/dev /resources/img/favicon.svg"
306304 local local_file=" "
307305
308306 # Return if icon already exists
@@ -803,9 +801,8 @@ function self_update() {
803801 local curr_date
804802 curr_date=" $( date +%Y%m%d%H%M%S) "
805803
806- local script_name
807- script_name=" $( basename " $0 " ) "
808- local script_remote_url=" https://raw.githubusercontent.com/frogro/photobooth/refs/heads/${BRANCH} /$script_name "
804+ local script_name=" install-photobooth.sh"
805+ local script_remote_url=" https://raw.githubusercontent.com/PhotoboothProject/photobooth/refs/heads/dev/$script_name "
809806 local script_temp_file=" /tmp/$script_name "
810807 local script_backup_file=" /tmp/${script_name} .bak_${curr_date} "
811808 local script_abs_path
@@ -959,7 +956,7 @@ function check_username() {
959956 else
960957 confirm " Invalid Username" " The username '$USERNAME ' does not exist. Please try again."
961958 USERNAME=" "
962- fi
959+ fi
963960 fi
964961 else
965962 if [ " $SILENT " = true ]; then
@@ -2870,10 +2867,6 @@ function check_remote_sha() {
28702867 local json_data
28712868 local commit_sha
28722869
2873- if [[ -z " $REMOTE_BRANCH_API " ]]; then
2874- return 1
2875- fi
2876-
28772870 json_data=$( curl -s " $REMOTE_BRANCH_API " )
28782871 if [[ -z " $json_data " ]]; then
28792872 info " Error" " Failed to retrieve remote branch data."
@@ -2941,18 +2934,13 @@ function check_photobooth_version() {
29412934
29422935function add_git_remote() {
29432936 info " GitHub remote" " Checking needed remote information..."
2944- if sudo -u www-data git config remote.${GIT_REMOTE_NAME} .url > /dev/null; then
2945- info " GitHub remote" " ${GIT_REMOTE_NAME} remote exists already"
2946- if ! sudo -u www-data git remote set-url ${GIT_REMOTE_NAME} " ${GIT_REPO_URL} " > /dev/null 2>&1 ; then
2947- error " Updating ${GIT_REMOTE_NAME} remote failed."
2948- confirm " GitHub remote Error" " Failed to update the Git remote URL."
2949- return 1
2950- fi
2937+ if sudo -u www-data git config remote.photoboothproject.url > /dev/null; then
2938+ info " GitHub remote" " photoboothproject remote exist already"
29512939 else
2952- info " GitHub remote" " Adding ${GIT_REMOTE_NAME} remote..."
2953- if ! sudo -u www-data git remote add ${GIT_REMOTE_NAME} " ${GIT_REPO_URL} " ; then
2954- error " Adding ${GIT_REMOTE_NAME} remote failed."
2955- confirm " GitHub remote Error" " Failed to add the Git remote repository."
2940+ info " GitHub remote" " Adding photoboothproject remote..."
2941+ if ! sudo -u www-data git remote add photoboothproject https://github.com/PhotoboothProject/photobooth.git ; then
2942+ error " Adding photoboothproject remote failed."
2943+ confirm " GitHub remote Error" " Failed to add the Photobooth remote repository."
29562944 return 1
29572945 fi
29582946 fi
@@ -2970,7 +2958,7 @@ function do_git_clone() {
29702958 chown www-data:www-data " $INSTALLFOLDERPATH "
29712959
29722960 info " GitHub clone" " Cloning the Photobooth repository..."
2973- if ! sudo -u www-data git clone " ${GIT_REPO_URL} " " $INSTALLFOLDERPATH " > /dev/null 2>&1 ; then
2961+ if ! sudo -u www-data git clone https://github.com/PhotoboothProject/photobooth " $INSTALLFOLDERPATH " > /dev/null 2>&1 ; then
29742962 error " Failed to clone the Photobooth repository."
29752963 confirm " Error: git clone failed" " Failed to clone the Photobooth repository.\nPlease check your network connection and permissions, then retry."
29762964 return 1
@@ -2994,8 +2982,8 @@ function start_git_install() {
29942982 # Configure Git settings and fetch the specified branch
29952983 info " GitHub installation" " Installing/Updating Photobooth via git."
29962984 sudo -u www-data git config core.fileMode false > /dev/null 2>&1
2997- sudo -u www-data git fetch ${GIT_REMOTE_NAME} " $BRANCH " > /dev/null 2>&1
2998- if ! sudo -u www-data git checkout -B " $BRANCH " " ${GIT_REMOTE_NAME} / $BRANCH " > /dev/null 2>&1 ; then
2985+ sudo -u www-data git fetch photoboothproject " $BRANCH " > /dev/null 2>&1
2986+ if ! sudo -u www-data git checkout photoboothproject/ " $BRANCH " > /dev/null 2>&1 ; then
29992987 error " Failed to fetch or checkout the branch: $BRANCH ."
30002988 return 2
30012989 fi
@@ -3591,7 +3579,7 @@ function printer_setup() {
35913579 confirm " Printer Setup" " An unknown error occurred during setup to print from any address."
35923580 ;;
35933581 esac
3594- ;;
3582+ ;;
35953583 2)
35963584 cups_disable_remote_any
35973585 case $? in
@@ -3608,7 +3596,7 @@ function printer_setup() {
36083596 confirm " Printer Setup" " An unknown error occurred during setup to disable print from any address."
36093597 ;;
36103598 esac
3611- ;;
3599+ ;;
36123600 3)
36133601 cups_enable_share
36143602 case $? in
@@ -3625,7 +3613,7 @@ function printer_setup() {
36253613 confirm " Printer Setup" " An unknown error occurred during printer sharing."
36263614 ;;
36273615 esac
3628- ;;
3616+ ;;
36293617 4)
36303618 cups_disable_share
36313619 case $? in
@@ -3642,7 +3630,7 @@ function printer_setup() {
36423630 confirm " Printer Setup" " An unknown error occurred during disabling printer sharing."
36433631 ;;
36443632 esac
3645- ;;
3633+ ;;
36463634 5)
36473635 cups_enable_remote_admin
36483636 case $? in
@@ -3659,7 +3647,7 @@ function printer_setup() {
36593647 confirm " Printer Setup" " An unknown error occurred during remote administration setup."
36603648 ;;
36613649 esac
3662- ;;
3650+ ;;
36633651 6)
36643652 cups_disable_remote_admin
36653653 case $? in
@@ -3676,7 +3664,7 @@ function printer_setup() {
36763664 confirm " Printer Setup" " An unknown error occurred during setup to disable remote administration."
36773665 ;;
36783666 esac
3679- ;;
3667+ ;;
36803668 7)
36813669 setup_printer_groups
36823670 case $? in
0 commit comments