projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
118398d
)
repair on sudo behavior
author
Chris Koeritz
<fred@gruntose.com>
Sun, 7 Jan 2018 15:53:51 +0000
(10:53 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Wed, 10 Jan 2018 20:01:12 +0000
(15:01 -0500)
scripts/system/add_swap_mount.sh
patch
|
blob
|
history
diff --git
a/scripts/system/add_swap_mount.sh
b/scripts/system/add_swap_mount.sh
index f1c019ea51389a355deaa22793d32755a871663c..5ba4274efc8519daa526cf6f5d019e2c382580a0 100644
(file)
--- a/
scripts/system/add_swap_mount.sh
+++ b/
scripts/system/add_swap_mount.sh
@@
-2,7
+2,8
@@
# auto-find the scripts, since we might want to run this as sudo.
export WORKDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )" # obtain the script's working directory.
# auto-find the scripts, since we might want to run this as sudo.
export WORKDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )" # obtain the script's working directory.
-source "$WORKDIR/../core/launch_feisty_meow.sh"
+export FEISTY_MEOW_APEX="$( \cd "$WORKDIR/../.." && \pwd )"
+source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh"
if [[ $EUID != 0 ]]; then
echo "This script must be run as root or sudo."
if [[ $EUID != 0 ]]; then
echo "This script must be run as root or sudo."
@@
-21,7
+22,7
@@
swap memory. This increases the amount of available memory on RAM constrained
systems. It accepts two parameters: (1) the instance of the swap file, which
should be a small number not already used for a swap partition, and (2) the
size of the swap file in megabytes."
systems. It accepts two parameters: (1) the instance of the swap file, which
should be a small number not already used for a swap partition, and (2) the
size of the swap file in megabytes."
- exit
1
+ exit
0
fi
# if the swap instance variable is already set, then we'll use it.
fi
# if the swap instance variable is already set, then we'll use it.