Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
615aaf9b
Commit
615aaf9b
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
User accessible apps list
parent
ce4afbf5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-utils-final
+43
-36
43 additions, 36 deletions
src/freedombone-utils-final
src/freedombone-utils-selector
+11
-0
11 additions, 0 deletions
src/freedombone-utils-selector
with
54 additions
and
36 deletions
src/freedombone-utils-final
+
43
−
36
View file @
615aaf9b
...
...
@@ -31,50 +31,57 @@
OPEN_PORTS
=()
function
install_final
{
if
grep
-Fxq
"install_final"
$COMPLETION_FILE
;
then
return
fi
# unmount any attached usb drive
if
[
-d
$USB_MOUNT
]
;
then
umount
$USB_MOUNT
rm
-rf
$USB_MOUNT
fi
function_check split_gpg_key_into_fragments
split_gpg_key_into_fragments
echo
'install_final'
>>
$COMPLETION_FILE
clear
echo
''
if
grep
-Fxq
"install_final"
$COMPLETION_FILE
;
then
return
fi
# unmount any attached usb drive
if
[
-d
$USB_MOUNT
]
;
then
umount
$USB_MOUNT
rm
-rf
$USB_MOUNT
fi
function_check split_gpg_key_into_fragments
split_gpg_key_into_fragments
echo
'install_final'
>>
$COMPLETION_FILE
clear
echo
''
echo
$"
***
${
PROJECT_NAME
}
installation is complete. Rebooting... ***
echo
$"
***
${
PROJECT_NAME
}
installation is complete. Rebooting... ***
Now forward these ports from your internet router
Now forward these ports from your internet router
"
for
p
in
"
${
OPEN_PORTS
[@]
}
"
do
echo
"
$p
"
done
echo
''
for
p
in
"
${
OPEN_PORTS
[@]
}
"
do
echo
"
$p
"
done
echo
''
if
[
-f
"/home/
$MY_USERNAME
/README"
]
;
then
echo
$"See /home/
$MY_USERNAME
/README for post-installation instructions."
echo
''
fi
# add user menu on ssh login
if
!
grep
-q
'control'
/home/
$MY_USERNAME
/.bashrc
;
then
echo
'control'
>>
/home/
$MY_USERNAME
/.bashrc
fi
if
[
!
-f
$IMAGE_PASSWORD_FILE
]
;
then
reboot
fi
if
[
-f
"/home/
$MY_USERNAME
/README"
]
;
then
echo
$"See /home/
$MY_USERNAME
/README for post-installation instructions."
echo
''
fi
# add user menu on ssh login
if
!
grep
-q
'control'
/home/
$MY_USERNAME
/.bashrc
;
then
echo
'control'
>>
/home/
$MY_USERNAME
/.bashrc
fi
if
[
!
-f
$IMAGE_PASSWORD_FILE
]
;
then
reboot
fi
}
function
update_installed_apps_list
{
cat
$COMPLETION_FILE
|
grep
"install_"
>
/usr/share/
${
PROJECT_NAME
}
/installed.txt
}
function
setup_final
{
function_check install_tripwire
install_tripwire
function_check update_installed_apps_list
update_installed_apps_list
function_check install_tripwire
install_tripwire
function_check install_final
install_final
function_check install_final
install_final
}
# NOTE: deliberately no exit 0
This diff is collapsed.
Click to expand it.
src/freedombone-utils-selector
+
11
−
0
View file @
615aaf9b
...
...
@@ -64,6 +64,15 @@ function app_is_installed {
return
fi
if
[
-f
/usr/share/
${
PROJECT_NAME
}
/installed.txt
]
;
then
if
!
grep
-Fxq
"install_
${
app_name
}
"
/usr/share/
${
PROJECT_NAME
}
/installed.txt
;
then
echo
"0"
else
echo
"1"
fi
return
fi
if
!
grep
-Fxq
"install_
${
app_name
}
"
$COMPLETION_FILE
;
then
echo
"0"
else
...
...
@@ -206,6 +215,7 @@ function remove_apps {
fi
app_index
=
$[
app_index+1]
done
update_installed_apps_list
}
function
install_apps
{
...
...
@@ -228,6 +238,7 @@ function install_apps {
fi
app_index
=
$[
app_index+1]
done
update_installed_apps_list
}
# NOTE: deliberately no exit 0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment