lower case
This commit is contained in:
parent
9689b739ed
commit
05cf51f3ba
|
@ -535,7 +535,7 @@ function install_rss_gnusocial {
|
||||||
|
|
||||||
# update to the next commit
|
# update to the next commit
|
||||||
function_check set_repo_commit
|
function_check set_repo_commit
|
||||||
set_repo_commit $RSS_READER_GNUSOCIAL_PATH "RSS reader gnusocial commit" "$RSS_READER_GNUSOCIAL_COMMIT" $RSS_READER_GNUSOCIAL_REPO
|
set_repo_commit $RSS_READER_GNUSOCIAL_PATH "rss reader gnusocial commit" "$RSS_READER_GNUSOCIAL_COMMIT" $RSS_READER_GNUSOCIAL_REPO
|
||||||
chown -R www-data:www-data $RSS_READER_GNUSOCIAL_PATH
|
chown -R www-data:www-data $RSS_READER_GNUSOCIAL_PATH
|
||||||
|
|
||||||
if grep -Fxq "install_rss_gnusocial" $COMPLETION_FILE; then
|
if grep -Fxq "install_rss_gnusocial" $COMPLETION_FILE; then
|
||||||
|
@ -556,8 +556,8 @@ function install_rss_gnusocial {
|
||||||
cp -r $INSTALL_DIR/ttrss-gnusocial $RSS_READER_GNUSOCIAL_PATH
|
cp -r $INSTALL_DIR/ttrss-gnusocial $RSS_READER_GNUSOCIAL_PATH
|
||||||
cd $RSS_READER_GNUSOCIAL_PATH
|
cd $RSS_READER_GNUSOCIAL_PATH
|
||||||
git checkout $RSS_READER_GNUSOCIAL_COMMIT -b $RSS_READER_GNUSOCIAL_COMMIT
|
git checkout $RSS_READER_GNUSOCIAL_COMMIT -b $RSS_READER_GNUSOCIAL_COMMIT
|
||||||
if ! grep -q "RSS reader gnusocial commit" $COMPLETION_FILE; then
|
if ! grep -q "rss reader gnusocial commit" $COMPLETION_FILE; then
|
||||||
echo "RSS reader gnusocial commit:$RSS_READER_GNUSOCIAL_COMMIT" >> $COMPLETION_FILE
|
echo "rss reader gnusocial commit:$RSS_READER_GNUSOCIAL_COMMIT" >> $COMPLETION_FILE
|
||||||
fi
|
fi
|
||||||
chown -R www-data:www-data $RSS_READER_GNUSOCIAL_PATH
|
chown -R www-data:www-data $RSS_READER_GNUSOCIAL_PATH
|
||||||
|
|
||||||
|
|
|
@ -72,8 +72,8 @@ function new_syncthing_id {
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_syncthing_config {
|
function create_syncthing_config {
|
||||||
if grep -q "Syncthing ID" $COMPLETION_FILE; then
|
if grep -q "syncthing ID" $COMPLETION_FILE; then
|
||||||
SYNCTHING_ID=$(cat $COMPLETION_FILE | grep "Syncthing ID" | awk -F ':' '{print $2}')
|
SYNCTHING_ID=$(cat $COMPLETION_FILE | grep "syncthing ID" | awk -F ':' '{print $2}')
|
||||||
else
|
else
|
||||||
if [ -f $SYNCTHING_CONFIG_FILE ]; then
|
if [ -f $SYNCTHING_CONFIG_FILE ]; then
|
||||||
SYNCTHING_ID=$(cat $SYNCTHING_CONFIG_FILE | grep "device id=" | head -n 1 | awk -F '"' '{print $2}')
|
SYNCTHING_ID=$(cat $SYNCTHING_CONFIG_FILE | grep "device id=" | head -n 1 | awk -F '"' '{print $2}')
|
||||||
|
@ -82,10 +82,10 @@ function create_syncthing_config {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q "Syncthing ID" $COMPLETION_FILE; then
|
if ! grep -q "syncthing ID" $COMPLETION_FILE; then
|
||||||
echo "Syncthing ID:$SYNCTHING_ID" >> $COMPLETION_FILE
|
echo "syncthing ID:$SYNCTHING_ID" >> $COMPLETION_FILE
|
||||||
else
|
else
|
||||||
sed -i "s|Syncthing ID.*|Syncthing ID:$SYNCTHING_ID|g" $COMPLETION_FILE
|
sed -i "s|syncthing ID.*|syncthing ID:$SYNCTHING_ID|g" $COMPLETION_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d $SYNCTHING_CONFIG_PATH ]; then
|
if [ ! -d $SYNCTHING_CONFIG_PATH ]; then
|
||||||
|
|
Loading…
Reference in New Issue