mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 10:09:42 +00:00
bug5938: Remove baseHomeDir from build-crontab
Move the necessary files too
This commit is contained in:
1 parent
0bba605b8a
commit
ba5b18884a
3 files changed
-3
No files matched your search
@@ -38,9 +38,6 @@ for dir in $(ls -d */ ); do
|
||||
cat "$crontab" >> $HOME_DIR/crontab
|
||||
echo "" >> $HOME_DIR/crontab # Adds a newline
|
||||
done
|
||||
if [[ -d "${dir}baseHomeDir" ]]; then
|
||||
cp -r ${dir}baseHomeDir/* $HOME_DIR
|
||||
fi
|
||||
sed -i "s|PATH_OF_GIT_HOME_DIR_TO_REPLACE|${GIT_PATH}|g" $HOME_DIR/crontab # Sets correct path to the git repo within the crontab.
|
||||
sed -i "s|PATH_OF_HOME_DIR_TO_REPLACE|${HOME_DIR}|g" $HOME_DIR/crontab # Sets the correct path to the home dir of the user whose crontab will be installed.
|
||||
crontab -u ${USERNAME} $HOME_DIR/crontab # Install the crontab in the given user's home dir.
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user