Update
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
|
||||
systemd.services."bitcoin-git" = {
|
||||
script = ''
|
||||
[ ! -d "/home/heaven/btcprice" ] && git clone git@github.com:anotherhadi/btcprice /home/heaven/btcprice
|
||||
cd "/home/heaven/btcprice"
|
||||
[ ! -d "/home/hadi/btcprice" ] && git clone git@github.com:anotherhadi/btcprice /home/hadi/btcprice
|
||||
cd "/home/hadi/btcprice"
|
||||
price=$(curl eur.rate.sx/1BTC)
|
||||
echo "# Bitcoin Price in EURO" >README.md
|
||||
echo "" >>README.md
|
||||
@@ -19,13 +19,13 @@
|
||||
echo "" >>README.md
|
||||
echo "Date: $(date)" >>README.md
|
||||
git add .
|
||||
git commit -m "Update price (heaven)"
|
||||
git commit -m "Update price (hadi)"
|
||||
git push -u origin main
|
||||
exit 0
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "heaven";
|
||||
User = "hadi";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user