Deb setup
This commit is contained in:
parent
fe83c39604
commit
ffb6d1910a
|
@ -82,8 +82,8 @@ async Task UsersCallback(UsersOptions options)
|
||||||
{
|
{
|
||||||
if(!string.IsNullOrWhiteSpace(prefs.Session))
|
if(!string.IsNullOrWhiteSpace(prefs.Session))
|
||||||
{
|
{
|
||||||
await clt.Users.SetCookieAsync(prefs.Session);
|
// await clt.Users.SetCookieAsync(prefs.Session);
|
||||||
await clt.Users.LogoutAsync();
|
//await clt.Users.LogoutAsync();
|
||||||
}
|
}
|
||||||
prefs.Session = cookie.Cookie;
|
prefs.Session = cookie.Cookie;
|
||||||
prefs.Save();
|
prefs.Save();
|
||||||
|
@ -99,8 +99,8 @@ async Task UsersCallback(UsersOptions options)
|
||||||
}
|
}
|
||||||
using(var clt = new TessesCMSClient(prefs.Url))
|
using(var clt = new TessesCMSClient(prefs.Url))
|
||||||
{
|
{
|
||||||
await clt.Users.SetCookieAsync(prefs.Session);
|
// await clt.Users.SetCookieAsync(prefs.Session);
|
||||||
await clt.Users.LogoutAsync();
|
// await clt.Users.LogoutAsync();
|
||||||
prefs.Session="";
|
prefs.Session="";
|
||||||
prefs.Save();
|
prefs.Save();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
export PATH=/root/.dotnet/tools:$PATH
|
||||||
dotnet tool install --global dotnet-deb
|
dotnet tool install --global dotnet-deb
|
||||||
. /deploy_dir/setpath.sh
|
. /deploy_dir/setpath.sh
|
||||||
ln -s "$DEPLOY_DIR" publish
|
ln -s "$DEPLOY_DIR" publish
|
||||||
|
|
Loading…
Reference in New Issue